Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- QueryableDataSourceHelper.cs
- HttpWebRequestElement.cs
- ConfigurationCollectionAttribute.cs
- RoutedPropertyChangedEventArgs.cs
- WebBrowsableAttribute.cs
- LogicalTreeHelper.cs
- FtpWebResponse.cs
- ProfileProvider.cs
- NavigationPropertyAccessor.cs
- ProfileModule.cs
- NativeMethods.cs
- CommandConverter.cs
- BaseParaClient.cs
- SelectionUIService.cs
- SetIterators.cs
- StyleSelector.cs
- ExtendedProtectionPolicyTypeConverter.cs
- DocumentPage.cs
- QilLoop.cs
- ValidationError.cs
- ClonableStack.cs
- ConstraintCollection.cs
- PropertyChangingEventArgs.cs
- SerializationStore.cs
- SetStoryboardSpeedRatio.cs
- MappedMetaModel.cs
- StateInitialization.cs
- SoapServerMessage.cs
- FontWeights.cs
- StringBuilder.cs
- TimelineClockCollection.cs
- ServiceReference.cs
- NumericUpDownAccelerationCollection.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- AliasedSlot.cs
- Vector3D.cs
- AnnotationComponentChooser.cs
- XslTransform.cs
- WsrmFault.cs
- _ListenerAsyncResult.cs
- LiteralTextContainerControlBuilder.cs
- translator.cs
- DbDeleteCommandTree.cs
- SafeRightsManagementHandle.cs
- ConditionValidator.cs
- WebPartEditVerb.cs
- DelimitedListTraceListener.cs
- EntityViewGenerationConstants.cs
- SrgsOneOf.cs
- CustomAttribute.cs
- SessionPageStatePersister.cs
- XomlCompilerError.cs
- IProvider.cs
- StatusBarPanel.cs
- Binding.cs
- DynamicUpdateCommand.cs
- DoubleLinkList.cs
- BidPrivateBase.cs
- EngineSite.cs
- MethodBody.cs
- EmptyStringExpandableObjectConverter.cs
- DataGridViewColumnEventArgs.cs
- SafeProcessHandle.cs
- PhysicalFontFamily.cs
- DbConnectionPoolOptions.cs
- TreeNodeSelectionProcessor.cs
- DataGridViewCellValidatingEventArgs.cs
- EntityConnectionStringBuilderItem.cs
- DataContext.cs
- TreeNodeStyleCollection.cs
- StructuredType.cs
- XmlUtf8RawTextWriter.cs
- DataGridItemCollection.cs
- TypeCacheManager.cs
- StretchValidation.cs
- NotifyInputEventArgs.cs
- PropertyGeneratedEventArgs.cs
- mda.cs
- FontWeights.cs
- CommandLibraryHelper.cs
- RelationshipConstraintValidator.cs
- ElementProxy.cs
- ListItem.cs
- CorrelationHandle.cs
- SafeCryptContextHandle.cs
- PerformanceCounterLib.cs
- CharacterBuffer.cs
- WebPartTransformerAttribute.cs
- XmlQuerySequence.cs
- BaseCodePageEncoding.cs
- Permission.cs
- TextBoxView.cs
- ClientUtils.cs
- HashSetEqualityComparer.cs
- RC2CryptoServiceProvider.cs
- UIPermission.cs
- WebPartDescription.cs
- EntityConnectionStringBuilderItem.cs
- ObsoleteAttribute.cs
- WindowsProgressbar.cs