Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / System / Windows / Documents / TextContainerChangeEventArgs.cs / 2 / 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
- XmlCodeExporter.cs
- UpdateRecord.cs
- FlowDocumentScrollViewer.cs
- ProgressBarRenderer.cs
- DiscoveryDocumentSearchPattern.cs
- FrameworkPropertyMetadata.cs
- GenerateScriptTypeAttribute.cs
- ImmComposition.cs
- SecurityTokenResolver.cs
- Material.cs
- BooleanProjectedSlot.cs
- NonClientArea.cs
- RunClient.cs
- HtmlInputPassword.cs
- FontCollection.cs
- CompiledQueryCacheEntry.cs
- controlskin.cs
- AttributeXamlType.cs
- EntityCollectionChangedParams.cs
- QilFactory.cs
- DateTimeValueSerializer.cs
- DataMemberConverter.cs
- BackoffTimeoutHelper.cs
- OleDbSchemaGuid.cs
- WebPartCollection.cs
- InfoCardServiceInstallComponent.cs
- PriorityRange.cs
- DragDeltaEventArgs.cs
- SelectedDatesCollection.cs
- ZipArchive.cs
- BadImageFormatException.cs
- ReadOnlyCollection.cs
- SQLDecimalStorage.cs
- DataView.cs
- UnsafeNativeMethods.cs
- WindowsRichEdit.cs
- PathFigureCollectionConverter.cs
- ObjectSpanRewriter.cs
- ConfigViewGenerator.cs
- ScrollItemPattern.cs
- SystemWebExtensionsSectionGroup.cs
- CollectionDataContractAttribute.cs
- Application.cs
- WizardForm.cs
- XmlSchemaType.cs
- SchemaElement.cs
- RightsManagementPermission.cs
- CommonObjectSecurity.cs
- RequestStatusBarUpdateEventArgs.cs
- IIS7UserPrincipal.cs
- ConfigXmlText.cs
- PrincipalPermission.cs
- Metafile.cs
- ToolStripItem.cs
- ComboBox.cs
- ScopelessEnumAttribute.cs
- FontCollection.cs
- CircleHotSpot.cs
- ClientFormsIdentity.cs
- ExpressionParser.cs
- XmlLanguageConverter.cs
- PriorityRange.cs
- FileAuthorizationModule.cs
- ProviderUtil.cs
- RawTextInputReport.cs
- ComboBox.cs
- XmlUtf8RawTextWriter.cs
- WebServiceClientProxyGenerator.cs
- StringUtil.cs
- CatalogZone.cs
- DateTimeFormatInfo.cs
- XmlQualifiedNameTest.cs
- PointKeyFrameCollection.cs
- SqlDataSourceConfigureSelectPanel.cs
- _ListenerRequestStream.cs
- ContextQuery.cs
- ApplicationSecurityManager.cs
- SizeConverter.cs
- OleDbErrorCollection.cs
- UInt32Converter.cs
- MetadataItemSerializer.cs
- ReaderWriterLockSlim.cs
- LogoValidationException.cs
- MarshalDirectiveException.cs
- odbcmetadatacolumnnames.cs
- VerificationAttribute.cs
- PropertyBuilder.cs
- Function.cs
- SoapAttributeAttribute.cs
- ReadContentAsBinaryHelper.cs
- MembershipSection.cs
- CacheMemory.cs
- BamlResourceDeserializer.cs
- ParameterModifier.cs
- DataComponentMethodGenerator.cs
- DataControlButton.cs
- WebServicesDescriptionAttribute.cs
- DefaultObjectMappingItemCollection.cs
- SapiAttributeParser.cs
- ApplicationActivator.cs