Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------------------- // // 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
- RegexGroup.cs
- IPEndPoint.cs
- MailAddress.cs
- VisualStyleTypesAndProperties.cs
- DataBindingsDialog.cs
- SystemColors.cs
- ToolStripDesignerUtils.cs
- IndexOutOfRangeException.cs
- PropertyDescriptorComparer.cs
- ObjectTypeMapping.cs
- JsonQueryStringConverter.cs
- PackagePartCollection.cs
- IndentTextWriter.cs
- ResXResourceSet.cs
- XmlNamespaceMappingCollection.cs
- ParentQuery.cs
- HttpConfigurationContext.cs
- Byte.cs
- BindingManagerDataErrorEventArgs.cs
- Grid.cs
- StylusLogic.cs
- DigestTraceRecordHelper.cs
- FloatSumAggregationOperator.cs
- WebPartChrome.cs
- ImageSource.cs
- HttpDictionary.cs
- HGlobalSafeHandle.cs
- MessageDecoder.cs
- ElementFactory.cs
- SystemDiagnosticsSection.cs
- ByteArrayHelperWithString.cs
- TargetPerspective.cs
- CompModSwitches.cs
- ResXBuildProvider.cs
- PresentationSource.cs
- DataGridTextBoxColumn.cs
- BooleanConverter.cs
- XPathScanner.cs
- SkipStoryboardToFill.cs
- DesignerPerfEventProvider.cs
- ThemeDictionaryExtension.cs
- XmlSchemaAll.cs
- SizeChangedInfo.cs
- _NestedSingleAsyncResult.cs
- SerializationInfo.cs
- ProtocolsSection.cs
- ObjectDataSourceStatusEventArgs.cs
- EventHandlersStore.cs
- XmlSchemaSimpleTypeRestriction.cs
- ToolConsole.cs
- CopyAction.cs
- ViewKeyConstraint.cs
- RtfToXamlLexer.cs
- grammarelement.cs
- TypeConverterMarkupExtension.cs
- RadioButton.cs
- GlobalItem.cs
- MatrixTransform3D.cs
- ColorPalette.cs
- TextEditor.cs
- ControlFilterExpression.cs
- ColumnCollection.cs
- InfoCardBaseException.cs
- FilterableAttribute.cs
- RawStylusActions.cs
- TextRangeEditTables.cs
- HtmlTable.cs
- TrackingStringDictionary.cs
- DTCTransactionManager.cs
- OverrideMode.cs
- SvcFileManager.cs
- ToggleProviderWrapper.cs
- CachingHintValidation.cs
- Win32SafeHandles.cs
- HMACMD5.cs
- EndpointConfigContainer.cs
- PageSetupDialog.cs
- PriorityBinding.cs
- TranslateTransform.cs
- selecteditemcollection.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- SplitterEvent.cs
- StylusOverProperty.cs
- MaskDescriptors.cs
- CanonicalFontFamilyReference.cs
- _SslSessionsCache.cs
- DataSourceCacheDurationConverter.cs
- PropertyItem.cs
- UnsafeNativeMethods.cs
- ServicePointManager.cs
- SqlConnectionPoolGroupProviderInfo.cs
- UrlMappingsModule.cs
- AnnotationComponentManager.cs
- X509CertificateValidator.cs
- AlternateViewCollection.cs
- EntityAdapter.cs
- ViewManagerAttribute.cs
- RowType.cs
- AssemblyBuilderData.cs
- PreProcessInputEventArgs.cs