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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ProjectedWrapper.cs
- CallbackValidatorAttribute.cs
- PaperSource.cs
- ValidationHelpers.cs
- TdsParserStateObject.cs
- XPathDocument.cs
- DbProviderFactories.cs
- Matrix3DStack.cs
- ToolStripSplitButton.cs
- AncestorChangedEventArgs.cs
- XamlNamespaceHelper.cs
- ComponentDispatcherThread.cs
- RadioButton.cs
- GenericPrincipal.cs
- MarkupCompilePass2.cs
- CommentEmitter.cs
- CompiledIdentityConstraint.cs
- RepeatBehavior.cs
- ValidationManager.cs
- WebPartConnectionsConnectVerb.cs
- TranslateTransform3D.cs
- UserValidatedEventArgs.cs
- VerticalAlignConverter.cs
- IERequestCache.cs
- Executor.cs
- DataControlCommands.cs
- GeneralEndpointIdentity.cs
- StructuralCache.cs
- SuppressedPackageProperties.cs
- EdmFunction.cs
- SafeNativeMethods.cs
- TimerElapsedEvenArgs.cs
- BindingMAnagerBase.cs
- Stylesheet.cs
- BaseParser.cs
- HandledEventArgs.cs
- EnumerableWrapperWeakToStrong.cs
- BufferBuilder.cs
- SerializationFieldInfo.cs
- Switch.cs
- SafeMILHandleMemoryPressure.cs
- SharedPerformanceCounter.cs
- ContentElementCollection.cs
- SortDescriptionCollection.cs
- FontInfo.cs
- TickBar.cs
- TextModifier.cs
- HttpListenerRequest.cs
- FormViewDeleteEventArgs.cs
- DateTimePicker.cs
- UnsafeNativeMethodsTablet.cs
- XmlDocumentFragment.cs
- IndexOutOfRangeException.cs
- Stylus.cs
- CodeTypeReferenceExpression.cs
- SqlUserDefinedTypeAttribute.cs
- ELinqQueryState.cs
- VectorValueSerializer.cs
- XmlDownloadManager.cs
- DynamicQueryStringParameter.cs
- MinimizableAttributeTypeConverter.cs
- _NestedSingleAsyncResult.cs
- SqlConnectionPoolProviderInfo.cs
- COM2PropertyDescriptor.cs
- ActivityInstance.cs
- InternalResources.cs
- SafeArchiveContext.cs
- StateDesigner.TransitionInfo.cs
- ThousandthOfEmRealPoints.cs
- TableRow.cs
- ErrorWebPart.cs
- SessionConnectionReader.cs
- EventData.cs
- ToolBarButtonClickEvent.cs
- DiscardableAttribute.cs
- DataKeyCollection.cs
- StateBag.cs
- PeerApplication.cs
- DataRecordInternal.cs
- FactoryRecord.cs
- XNodeSchemaApplier.cs
- AbsoluteQuery.cs
- ChildTable.cs
- XmlAttributeProperties.cs
- QuaternionKeyFrameCollection.cs
- DesignerActionMethodItem.cs
- MethodBuilderInstantiation.cs
- CancelEventArgs.cs
- GeometryGroup.cs
- OneToOneMappingSerializer.cs
- listitem.cs
- DataGridTextBox.cs
- ThemeDirectoryCompiler.cs
- TableRow.cs
- FtpCachePolicyElement.cs
- ContactManager.cs
- ToolStripDropTargetManager.cs
- ZipIOBlockManager.cs
- EmptyQuery.cs
- Calendar.cs