Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Documents / TextContainerChangeEventArgs.cs / 1305600 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AdCreatedEventArgs.cs
- SortFieldComparer.cs
- SocketPermission.cs
- PageThemeBuildProvider.cs
- CachedPathData.cs
- BinaryCommonClasses.cs
- Registry.cs
- WindowsListViewScroll.cs
- GroupStyle.cs
- XamlBuildTaskServices.cs
- Choices.cs
- AssemblyCache.cs
- GenericIdentity.cs
- InnerItemCollectionView.cs
- Label.cs
- TCPListener.cs
- TextLineResult.cs
- RelationshipConverter.cs
- ActiveXSite.cs
- DynamicPropertyReader.cs
- ScaleTransform.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- SecurityHelper.cs
- SafeSerializationManager.cs
- ParentQuery.cs
- MimeWriter.cs
- NGCSerializationManager.cs
- CharEnumerator.cs
- NGCSerializerAsync.cs
- ProcessManager.cs
- X509InitiatorCertificateClientElement.cs
- XPathAncestorQuery.cs
- ReflectTypeDescriptionProvider.cs
- XmlSchemaAttributeGroup.cs
- WindowClosedEventArgs.cs
- TextUtf8RawTextWriter.cs
- DefaultAuthorizationContext.cs
- ArrayExtension.cs
- OracleColumn.cs
- tabpagecollectioneditor.cs
- MemberHolder.cs
- ContainsRowNumberChecker.cs
- ControlBindingsConverter.cs
- WindowsPen.cs
- BuiltInPermissionSets.cs
- ReadOnlyDataSource.cs
- CustomErrorCollection.cs
- GenericsNotImplementedException.cs
- Dispatcher.cs
- DataGridViewCellValidatingEventArgs.cs
- ServiceInstallComponent.cs
- ManipulationCompletedEventArgs.cs
- OpCodes.cs
- DataGridViewImageColumn.cs
- ClientSettingsStore.cs
- DropShadowBitmapEffect.cs
- Misc.cs
- Parser.cs
- RewritingPass.cs
- SiteMapSection.cs
- SyndicationCategory.cs
- ToolboxBitmapAttribute.cs
- ExpressionLexer.cs
- MouseWheelEventArgs.cs
- BaseAddressElementCollection.cs
- Crc32.cs
- PropertyManager.cs
- XmlAttributeCollection.cs
- DropShadowEffect.cs
- OracleException.cs
- TextServicesPropertyRanges.cs
- IndexedString.cs
- WebPartConnectionCollection.cs
- CodePageEncoding.cs
- HorizontalAlignConverter.cs
- Metadata.cs
- SqlTypeConverter.cs
- XmlRootAttribute.cs
- Visual3DCollection.cs
- ListViewDataItem.cs
- TaskHelper.cs
- ControlBindingsCollection.cs
- UInt16Storage.cs
- X509Utils.cs
- Convert.cs
- UnmanagedHandle.cs
- X509AsymmetricSecurityKey.cs
- Tuple.cs
- OneOfTypeConst.cs
- UIElementHelper.cs
- DesignBindingPicker.cs
- StylusCollection.cs
- ExternalDataExchangeService.cs
- HttpConfigurationSystem.cs
- DesignBindingEditor.cs
- HwndKeyboardInputProvider.cs
- UserPreferenceChangedEventArgs.cs
- CommandID.cs
- SwitchAttribute.cs