Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- PasswordBox.cs
- EndpointDiscoveryMetadataCD1.cs
- UnmanagedMemoryStream.cs
- StringTraceRecord.cs
- MenuItemBindingCollection.cs
- DesignObjectWrapper.cs
- WebPartVerbCollection.cs
- HashRepartitionEnumerator.cs
- HttpRuntimeSection.cs
- RegionInfo.cs
- FrameworkContentElement.cs
- XmlDataSource.cs
- MetadataPropertyvalue.cs
- HtmlValidationSummaryAdapter.cs
- ElasticEase.cs
- FormatterServices.cs
- HttpWriter.cs
- GrammarBuilderWildcard.cs
- Pair.cs
- PostBackTrigger.cs
- MediaPlayerState.cs
- RuntimeVariablesExpression.cs
- TripleDESCryptoServiceProvider.cs
- Literal.cs
- FactoryMaker.cs
- TemplateControlCodeDomTreeGenerator.cs
- ScriptManagerProxy.cs
- SystemIPAddressInformation.cs
- OleDbException.cs
- PrintDialog.cs
- VisualStyleElement.cs
- processwaithandle.cs
- SqlRewriteScalarSubqueries.cs
- BuildProviderCollection.cs
- Paragraph.cs
- safePerfProviderHandle.cs
- PkcsMisc.cs
- LineServicesCallbacks.cs
- _NetworkingPerfCounters.cs
- FloaterParaClient.cs
- XmlNodeChangedEventManager.cs
- KeyboardEventArgs.cs
- XmlDataSourceNodeDescriptor.cs
- SimpleBitVector32.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- MenuEventArgs.cs
- AnnotationDocumentPaginator.cs
- StrongNameIdentityPermission.cs
- TextTreeRootNode.cs
- ContractMapping.cs
- FormattedTextSymbols.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- Column.cs
- StoreAnnotationsMap.cs
- CookieParameter.cs
- QueryGeneratorBase.cs
- DataStreamFromComStream.cs
- CodeAccessSecurityEngine.cs
- ThemeableAttribute.cs
- TransformedBitmap.cs
- StringToken.cs
- MenuBase.cs
- Grid.cs
- EntityDataSourceMemberPath.cs
- HitTestFilterBehavior.cs
- SqlEnums.cs
- XmlNavigatorStack.cs
- PolyLineSegment.cs
- JournalNavigationScope.cs
- GeneralTransform3DTo2D.cs
- XmlNavigatorFilter.cs
- TransformerInfo.cs
- NamedObjectList.cs
- TextWriter.cs
- SqlParameter.cs
- CalendarItem.cs
- ExpressionLexer.cs
- VideoDrawing.cs
- PropertyMapper.cs
- EDesignUtil.cs
- DrawingContextDrawingContextWalker.cs
- LicenseManager.cs
- RepeatButtonAutomationPeer.cs
- Interlocked.cs
- ProviderException.cs
- GridViewRowEventArgs.cs
- PartialTrustVisibleAssembliesSection.cs
- ToolStripRenderEventArgs.cs
- ScrollViewerAutomationPeer.cs
- ComponentCache.cs
- ValidationSummaryDesigner.cs
- ListViewAutomationPeer.cs
- DataGridViewColumn.cs
- PropertyConverter.cs
- ToolStripSplitButton.cs
- ControlIdConverter.cs
- PrtCap_Public_Simple.cs
- ConsoleCancelEventArgs.cs
- HeaderedItemsControl.cs
- StylusCaptureWithinProperty.cs