Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Media / textformatting / IndexedGlyphRun.cs / 1 / IndexedGlyphRun.cs
//----------------------------------------------------------------------------
//
//
// Copyright (C) Microsoft Corporation. All rights reserved.
//
//
//
// Description: IndexedGlyphRun class
//
// History:
// 2/2/2004: [....] Created the file
//
//---------------------------------------------------------------------------
using System;
using System.Windows.Media;
namespace System.Windows.Media.TextFormatting
{
///
/// GlyphRun indexed with text source character index. It allows clients to map a text source character index
/// to the corresponding GlyphRun.
///
public sealed class IndexedGlyphRun
{
///
/// Internal constructor.
///
internal IndexedGlyphRun(
int textSourceCharacterIndex,
int textSourceCharacterLength,
GlyphRun glyphRun
)
{
_textSourceCharacterIndex = textSourceCharacterIndex;
_length = textSourceCharacterLength;
_glyphRun = glyphRun;
}
//----------------------------------
// Public properties
//----------------------------------
///
/// gets the text source character index corresponding to the beginning of the GlyphRun
///
public int TextSourceCharacterIndex
{
get
{
return _textSourceCharacterIndex;
}
}
///
/// gets the text source character length corresponding to this GlyphRun. The text source character
/// length does not necessarily equal to the character count in GlyphRun.
///
public int TextSourceLength
{
get
{
return _length;
}
}
///
/// gets the GlyphRun object
///
public GlyphRun GlyphRun
{
get
{
return _glyphRun;
}
}
//-------------------------
// private members
//-------------------------
private GlyphRun _glyphRun;
private int _textSourceCharacterIndex;
private int _length;
}
}
// 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
- CheckBoxAutomationPeer.cs
- RC2.cs
- XmlNodeList.cs
- ComponentChangedEvent.cs
- BoundColumn.cs
- TypeGenericEnumerableViewSchema.cs
- ReadWriteSpinLock.cs
- DataGridViewLinkColumn.cs
- AnimatedTypeHelpers.cs
- CalendarTable.cs
- ScrollableControl.cs
- TreeWalkHelper.cs
- TimeZoneInfo.cs
- XmlDataSourceView.cs
- _NetworkingPerfCounters.cs
- ComponentResourceKeyConverter.cs
- MissingMemberException.cs
- RepeaterItemEventArgs.cs
- DropDownList.cs
- MultiSelectRootGridEntry.cs
- SerializationIncompleteException.cs
- AnnotationElement.cs
- InputLangChangeRequestEvent.cs
- LineSegment.cs
- WindowShowOrOpenTracker.cs
- DataServiceKeyAttribute.cs
- ActivityDesignerResources.cs
- SineEase.cs
- ResourceIDHelper.cs
- HyperlinkAutomationPeer.cs
- CounterCreationData.cs
- DataProtection.cs
- WebConvert.cs
- GPRECTF.cs
- ListBase.cs
- XmlEnumAttribute.cs
- AnalyzedTree.cs
- ReadOnlyHierarchicalDataSource.cs
- SpStreamWrapper.cs
- ApplyImportsAction.cs
- XPathNodeList.cs
- CornerRadius.cs
- ImmutableCommunicationTimeouts.cs
- DateTimeConverter.cs
- ImageClickEventArgs.cs
- StateMachineExecutionState.cs
- AnimationClock.cs
- BufferedWebEventProvider.cs
- TranslateTransform3D.cs
- DropShadowEffect.cs
- Menu.cs
- BamlRecordHelper.cs
- ImageButton.cs
- CryptographicAttribute.cs
- WebSysDefaultValueAttribute.cs
- ThreadExceptionDialog.cs
- EventLogInformation.cs
- UIInitializationException.cs
- InvalidDocumentContentsException.cs
- AuthenticationService.cs
- TreeViewAutomationPeer.cs
- EraserBehavior.cs
- InheritablePropertyChangeInfo.cs
- OrthographicCamera.cs
- UriSection.cs
- UserControlCodeDomTreeGenerator.cs
- SoapAttributeAttribute.cs
- ObjectCloneHelper.cs
- RemoteWebConfigurationHostServer.cs
- PKCS1MaskGenerationMethod.cs
- DesignerHost.cs
- EnvelopedPkcs7.cs
- ImageProxy.cs
- InitializeCorrelation.cs
- DocumentGridPage.cs
- OleDbWrapper.cs
- DefinitionBase.cs
- SoapIgnoreAttribute.cs
- TextSpanModifier.cs
- SQLByte.cs
- UserCancellationException.cs
- DocComment.cs
- CodeAccessSecurityEngine.cs
- MessageContractMemberAttribute.cs
- StringFunctions.cs
- adornercollection.cs
- CollectionViewGroupRoot.cs
- LinearGradientBrush.cs
- IsolatedStorageFile.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- FillBehavior.cs
- ViewStateChangedEventArgs.cs
- QueryCacheKey.cs
- mediaeventargs.cs
- InvalidComObjectException.cs
- ThrowHelper.cs
- RepeaterItemEventArgs.cs
- RowParagraph.cs
- ISAPIApplicationHost.cs
- DesignerTransaction.cs