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
- webbrowsersite.cs
- FileChangeNotifier.cs
- DataGridViewIntLinkedList.cs
- QueryCacheManager.cs
- LogConverter.cs
- SingleResultAttribute.cs
- FillBehavior.cs
- MenuItemCollectionEditorDialog.cs
- MemoryRecordBuffer.cs
- Ticks.cs
- Attributes.cs
- CodeTypeDelegate.cs
- IUnknownConstantAttribute.cs
- StaticSiteMapProvider.cs
- CodeGen.cs
- EditCommandColumn.cs
- EventEntry.cs
- WeakReferenceEnumerator.cs
- CommandBinding.cs
- IODescriptionAttribute.cs
- XsltArgumentList.cs
- SequentialUshortCollection.cs
- xmlglyphRunInfo.cs
- BaseUriHelper.cs
- EventLogPermissionAttribute.cs
- ComboBoxRenderer.cs
- EncodingTable.cs
- ProvidePropertyAttribute.cs
- DelegateSerializationHolder.cs
- AutoSizeComboBox.cs
- BrowserInteropHelper.cs
- DeclarativeCatalogPart.cs
- CodeSubDirectory.cs
- PriorityQueue.cs
- MailMessage.cs
- HttpCapabilitiesSectionHandler.cs
- DelegatingTypeDescriptionProvider.cs
- PropertyConverter.cs
- VirtualDirectoryMappingCollection.cs
- SerializationAttributes.cs
- MetadataSource.cs
- SystemNetHelpers.cs
- SecUtil.cs
- Pointer.cs
- WizardPanelChangingEventArgs.cs
- SafeHandle.cs
- ConsoleEntryPoint.cs
- RemoteWebConfigurationHostServer.cs
- ThemeableAttribute.cs
- ClientScriptItem.cs
- ProxyWebPartManager.cs
- Int16AnimationBase.cs
- CounterCreationData.cs
- SoapIncludeAttribute.cs
- OperationCanceledException.cs
- SourceFileBuildProvider.cs
- DateTimePicker.cs
- OverflowException.cs
- NumberSubstitution.cs
- HttpHeaderCollection.cs
- RelatedEnd.cs
- TimeSpanSecondsConverter.cs
- MLangCodePageEncoding.cs
- Panel.cs
- ColorConvertedBitmapExtension.cs
- KeyEventArgs.cs
- ProgressBar.cs
- MenuDesigner.cs
- DataPagerFieldCollection.cs
- BehaviorEditorPart.cs
- Console.cs
- WebPartHeaderCloseVerb.cs
- DigestComparer.cs
- RuntimeArgument.cs
- DesignerDataTable.cs
- PageParser.cs
- UriSection.cs
- HtmlSelect.cs
- TdsRecordBufferSetter.cs
- ActivityUtilities.cs
- VirtualPathUtility.cs
- QueryStatement.cs
- ProtectedProviderSettings.cs
- TableLayoutSettings.cs
- BufferModesCollection.cs
- FormViewDeleteEventArgs.cs
- LogLogRecordEnumerator.cs
- ObjectDataSourceDisposingEventArgs.cs
- StateRuntime.cs
- MaskedTextBox.cs
- ArgumentFixer.cs
- MatrixValueSerializer.cs
- Rfc4050KeyFormatter.cs
- BitmapEffectRenderDataResource.cs
- URLEditor.cs
- ToolStrip.cs
- ColorContext.cs
- InstancePersistenceCommand.cs
- NonSerializedAttribute.cs
- CapabilitiesSection.cs