Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Framework / System / Windows / Documents / TextContainerChangeEventArgs.cs / 1 / TextContainerChangeEventArgs.cs
//---------------------------------------------------------------------------- // // File: TextContainerChangeEventArgs.cs // // Description: The arguments sent when a Change event is fired in a TextContainer. // //--------------------------------------------------------------------------- using System; namespace System.Windows.Documents { ////// The TextContainerChangeEventArgs defines the event arguments sent when a /// TextContainer is changed. /// internal class TextContainerChangeEventArgs : EventArgs { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors internal TextContainerChangeEventArgs(ITextPointer textPosition, int count, int charCount, TextChangeType textChange) : this(textPosition, count, charCount, textChange, null, false) { } internal TextContainerChangeEventArgs(ITextPointer textPosition, int count, int charCount, TextChangeType textChange, DependencyProperty property, bool affectsRenderOnly) { _textPosition = textPosition.GetFrozenPointer(LogicalDirection.Forward); _count = count; _charCount = charCount; _textChange = textChange; _property = property; _affectsRenderOnly = affectsRenderOnly; } #endregion Constructors //------------------------------------------------------ // // Internal Properties // //----------------------------------------------------- #region Internal Properties // Position of the segment start, expressed as an ITextPointer. internal ITextPointer ITextPosition { get { return _textPosition; } } // Number of chars covered by this segment. internal int IMECharCount { get { return _charCount; } } internal bool AffectsRenderOnly { get { return _affectsRenderOnly; } } ////// /// internal int Count { get { return _count; } } ////// /// internal TextChangeType TextChange { get { return _textChange; } } ////// /// internal DependencyProperty Property { get { return _property; } } #endregion Internal Properties //------------------------------------------------------ // // Private Fields // //------------------------------------------------------ #region Private Fields // Position of the segment start, expressed as an ITextPointer. private readonly ITextPointer _textPosition; // Number of symbols covered by this segment. private readonly int _count; // Number of chars covered by this segment. private readonly int _charCount; // Type of change. private readonly TextChangeType _textChange; private readonly DependencyProperty _property; private readonly bool _affectsRenderOnly; #endregion Private Fields } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // // File: TextContainerChangeEventArgs.cs // // Description: The arguments sent when a Change event is fired in a TextContainer. // //--------------------------------------------------------------------------- using System; namespace System.Windows.Documents { ////// The TextContainerChangeEventArgs defines the event arguments sent when a /// TextContainer is changed. /// internal class TextContainerChangeEventArgs : EventArgs { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors internal TextContainerChangeEventArgs(ITextPointer textPosition, int count, int charCount, TextChangeType textChange) : this(textPosition, count, charCount, textChange, null, false) { } internal TextContainerChangeEventArgs(ITextPointer textPosition, int count, int charCount, TextChangeType textChange, DependencyProperty property, bool affectsRenderOnly) { _textPosition = textPosition.GetFrozenPointer(LogicalDirection.Forward); _count = count; _charCount = charCount; _textChange = textChange; _property = property; _affectsRenderOnly = affectsRenderOnly; } #endregion Constructors //------------------------------------------------------ // // Internal Properties // //----------------------------------------------------- #region Internal Properties // Position of the segment start, expressed as an ITextPointer. internal ITextPointer ITextPosition { get { return _textPosition; } } // Number of chars covered by this segment. internal int IMECharCount { get { return _charCount; } } internal bool AffectsRenderOnly { get { return _affectsRenderOnly; } } ////// /// internal int Count { get { return _count; } } ////// /// internal TextChangeType TextChange { get { return _textChange; } } ////// /// internal DependencyProperty Property { get { return _property; } } #endregion Internal Properties //------------------------------------------------------ // // Private Fields // //------------------------------------------------------ #region Private Fields // Position of the segment start, expressed as an ITextPointer. private readonly ITextPointer _textPosition; // Number of symbols covered by this segment. private readonly int _count; // Number of chars covered by this segment. private readonly int _charCount; // Type of change. private readonly TextChangeType _textChange; private readonly DependencyProperty _property; private readonly bool _affectsRenderOnly; #endregion Private Fields } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SignedXml.cs
- TextDocumentView.cs
- ValidationRule.cs
- RijndaelCryptoServiceProvider.cs
- XpsViewerException.cs
- CharAnimationBase.cs
- NumericUpDownAcceleration.cs
- TableItemProviderWrapper.cs
- PreservationFileReader.cs
- OpenTypeLayoutCache.cs
- arc.cs
- RuntimeResourceSet.cs
- RepeaterItemEventArgs.cs
- DetailsViewDeleteEventArgs.cs
- WindowsRichEditRange.cs
- SystemIPInterfaceStatistics.cs
- SHA512Managed.cs
- PageContent.cs
- LogLogRecordHeader.cs
- EncryptedHeaderXml.cs
- LocalizableAttribute.cs
- DPTypeDescriptorContext.cs
- ClientBuildManagerCallback.cs
- Helper.cs
- DispatchChannelSink.cs
- DateTimePickerDesigner.cs
- TypeLibConverter.cs
- WindowsComboBox.cs
- ToolStrip.cs
- StylusPlugInCollection.cs
- Timeline.cs
- StringConverter.cs
- CodeGeneratorOptions.cs
- TreeNodeStyle.cs
- ControlBuilderAttribute.cs
- TypeLoadException.cs
- PathHelper.cs
- MessagePropertyVariants.cs
- HtmlElement.cs
- IApplicationTrustManager.cs
- ProjectionPruner.cs
- AutoGeneratedFieldProperties.cs
- EdmType.cs
- xamlnodes.cs
- OrderedDictionaryStateHelper.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- DefaultBindingPropertyAttribute.cs
- DataGridViewCellMouseEventArgs.cs
- PerformanceCounterManager.cs
- CheckBoxField.cs
- RotationValidation.cs
- DataConnectionHelper.cs
- SoapIncludeAttribute.cs
- MarkedHighlightComponent.cs
- LabelInfo.cs
- IsolatedStorageSecurityState.cs
- ColorBlend.cs
- EnumType.cs
- DataGridTableCollection.cs
- EndPoint.cs
- XmlLangPropertyAttribute.cs
- WebReferenceOptions.cs
- TextSegment.cs
- HttpDebugHandler.cs
- CheckBoxField.cs
- InputScopeAttribute.cs
- IDispatchConstantAttribute.cs
- WebPartConnectionsConfigureVerb.cs
- _TimerThread.cs
- PeerNameResolver.cs
- BezierSegment.cs
- CodeCastExpression.cs
- EntityDataSourceChangingEventArgs.cs
- CodeIdentifier.cs
- ReaderWriterLockWrapper.cs
- StateBag.cs
- FigureParagraph.cs
- SizeFConverter.cs
- SqlMultiplexer.cs
- DesignerLoader.cs
- TableRow.cs
- ClientApiGenerator.cs
- CellQuery.cs
- SQLBytesStorage.cs
- SqlProfileProvider.cs
- LinkArea.cs
- CssStyleCollection.cs
- SiteMapNodeItemEventArgs.cs
- CollectionViewSource.cs
- EdmMember.cs
- ThumbAutomationPeer.cs
- BitmapMetadataEnumerator.cs
- GradientSpreadMethodValidation.cs
- CompiledRegexRunnerFactory.cs
- DataObjectCopyingEventArgs.cs
- FilterQuery.cs
- SecurityRuntime.cs
- PageSettings.cs
- SvcMapFileLoader.cs
- BitmapImage.cs