Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Controls / TextChange.cs / 1305600 / TextChange.cs
//----------------------------------------------------------------------------
//
//
// Copyright (C) Microsoft Corporation. All rights reserved.
//
//
// Description:
//
// History:
// 6/1/2007 : psarrett - Created
//
//---------------------------------------------------------------------------
using System;
using System.Windows;
using System.Collections;
namespace System.Windows.Controls
{
///
/// Specifies the changes applied to TextContainer content.
///
public class TextChange
{
//-----------------------------------------------------
//
// Constructors
//
//-----------------------------------------------------
#region Constructors
internal TextChange()
{
}
#endregion Constructors
//------------------------------------------------------
//
// Public Members
//
//-----------------------------------------------------
#region Public Members
///
/// 0-based character offset for this change
///
public int Offset
{
get
{
return _offset;
}
internal set
{
_offset = value;
}
}
///
/// Number of characters added
///
public int AddedLength
{
get
{
return _addedLength;
}
internal set
{
_addedLength = value;
}
}
///
/// Number of characters removed
///
public int RemovedLength
{
get
{
return _removedLength;
}
internal set
{
_removedLength = value;
}
}
#endregion Public Members
//------------------------------------------------------
//
// Private Fields
//
//------------------------------------------------------
#region Private Fields
private int _offset;
private int _addedLength;
private int _removedLength;
#endregion Private Fields
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
//----------------------------------------------------------------------------
//
//
// Copyright (C) Microsoft Corporation. All rights reserved.
//
//
// Description:
//
// History:
// 6/1/2007 : psarrett - Created
//
//---------------------------------------------------------------------------
using System;
using System.Windows;
using System.Collections;
namespace System.Windows.Controls
{
///
/// Specifies the changes applied to TextContainer content.
///
public class TextChange
{
//-----------------------------------------------------
//
// Constructors
//
//-----------------------------------------------------
#region Constructors
internal TextChange()
{
}
#endregion Constructors
//------------------------------------------------------
//
// Public Members
//
//-----------------------------------------------------
#region Public Members
///
/// 0-based character offset for this change
///
public int Offset
{
get
{
return _offset;
}
internal set
{
_offset = value;
}
}
///
/// Number of characters added
///
public int AddedLength
{
get
{
return _addedLength;
}
internal set
{
_addedLength = value;
}
}
///
/// Number of characters removed
///
public int RemovedLength
{
get
{
return _removedLength;
}
internal set
{
_removedLength = value;
}
}
#endregion Public Members
//------------------------------------------------------
//
// Private Fields
//
//------------------------------------------------------
#region Private Fields
private int _offset;
private int _addedLength;
private int _removedLength;
#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
- CollectionDataContract.cs
- TableItemStyle.cs
- FactoryRecord.cs
- Parser.cs
- TypeListConverter.cs
- DbDataReader.cs
- PrivilegeNotHeldException.cs
- SafeBitVector32.cs
- LinkDesigner.cs
- Viewport3DVisual.cs
- SqlTrackingQuery.cs
- SlipBehavior.cs
- DataGridViewRowPrePaintEventArgs.cs
- SqlDataRecord.cs
- DataGridViewBindingCompleteEventArgs.cs
- KeyBinding.cs
- Nullable.cs
- TextComposition.cs
- __Filters.cs
- RuntimeWrappedException.cs
- UpdateManifestForBrowserApplication.cs
- DoubleLinkListEnumerator.cs
- CodeTypeParameter.cs
- BindingWorker.cs
- MediaContextNotificationWindow.cs
- mediapermission.cs
- StickyNoteAnnotations.cs
- mediaeventshelper.cs
- NegotiateStream.cs
- AttributeEmitter.cs
- BitmapInitialize.cs
- StorageComplexTypeMapping.cs
- ValidationPropertyAttribute.cs
- RichTextBox.cs
- CodeEventReferenceExpression.cs
- SingleAnimationUsingKeyFrames.cs
- XmlWrappingReader.cs
- MailAddressCollection.cs
- OleDbEnumerator.cs
- LocatorPart.cs
- ConnectionsZone.cs
- CultureData.cs
- ApplicationServicesHostFactory.cs
- InvalidOperationException.cs
- BlockUIContainer.cs
- Internal.cs
- DrawItemEvent.cs
- WebServiceReceive.cs
- AssemblyNameProxy.cs
- DbDataReader.cs
- InvalidEnumArgumentException.cs
- HtmlInputSubmit.cs
- GradientBrush.cs
- OleDbCommand.cs
- Lazy.cs
- ArraySubsetEnumerator.cs
- ConstructorExpr.cs
- SqlMethodAttribute.cs
- QuadTree.cs
- OutputWindow.cs
- RawStylusActions.cs
- SqlNodeTypeOperators.cs
- EasingKeyFrames.cs
- ComboBox.cs
- CryptoHandle.cs
- MetaTableHelper.cs
- StateMachine.cs
- VariantWrapper.cs
- TypeInfo.cs
- ThreadStateException.cs
- EntityDataSourceContextCreatedEventArgs.cs
- SplitterPanel.cs
- SharedStatics.cs
- WeakReferenceKey.cs
- CryptoConfig.cs
- ZoneLinkButton.cs
- TcpTransportElement.cs
- WindowsListViewGroupHelper.cs
- AccessDataSourceView.cs
- BamlResourceSerializer.cs
- TextProperties.cs
- NonClientArea.cs
- Barrier.cs
- DataGridDetailsPresenter.cs
- NullReferenceException.cs
- PtsContext.cs
- BorderGapMaskConverter.cs
- AddInController.cs
- ConfigurationSectionGroup.cs
- AddInEnvironment.cs
- TransportSecurityProtocol.cs
- WebPartEventArgs.cs
- ObjectPersistData.cs
- Timeline.cs
- ContainerAction.cs
- BindingValueChangedEventArgs.cs
- CacheDependency.cs
- SelectedGridItemChangedEvent.cs
- HtmlFormWrapper.cs
- ContainerControlDesigner.cs