Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / System / Windows / Media / textformatting / IndexedGlyphRun.cs / 1 / IndexedGlyphRun.cs
//----------------------------------------------------------------------------
//
//
// Copyright (C) Microsoft Corporation. All rights reserved.
//
//
//
// Description: IndexedGlyphRun class
//
// History:
// 2/2/2004: Garyyang 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.
//----------------------------------------------------------------------------
//
//
// Copyright (C) Microsoft Corporation. All rights reserved.
//
//
//
// Description: IndexedGlyphRun class
//
// History:
// 2/2/2004: Garyyang 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
- UnsettableComboBox.cs
- ButtonColumn.cs
- XmlExtensionFunction.cs
- WebEncodingValidator.cs
- View.cs
- Model3DGroup.cs
- WebPartDescription.cs
- SchemaNames.cs
- ToolStripLocationCancelEventArgs.cs
- AnonymousIdentificationSection.cs
- DebuggerAttributes.cs
- WebBrowserEvent.cs
- ToolStripScrollButton.cs
- Rectangle.cs
- SqlNode.cs
- AttachedAnnotation.cs
- AttachedAnnotation.cs
- Int16AnimationBase.cs
- PersonalizationStateInfoCollection.cs
- CopyAttributesAction.cs
- MediaScriptCommandRoutedEventArgs.cs
- BreadCrumbTextConverter.cs
- RequestBringIntoViewEventArgs.cs
- StoreAnnotationsMap.cs
- RowsCopiedEventArgs.cs
- Asn1IntegerConverter.cs
- SqlLiftIndependentRowExpressions.cs
- TriggerBase.cs
- FileFormatException.cs
- LineServicesCallbacks.cs
- Container.cs
- ServiceHostFactory.cs
- QuaternionAnimation.cs
- TemplateManager.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- oledbmetadatacolumnnames.cs
- UIAgentAsyncBeginRequest.cs
- ListViewItemMouseHoverEvent.cs
- CodeCompiler.cs
- DataFormats.cs
- SqlBulkCopy.cs
- InheritedPropertyDescriptor.cs
- CodeExpressionStatement.cs
- TextParaClient.cs
- SecurityTokenAuthenticator.cs
- TypeUnloadedException.cs
- IOThreadTimer.cs
- EncryptedPackage.cs
- GenericPrincipal.cs
- DataGridViewSelectedColumnCollection.cs
- FrameSecurityDescriptor.cs
- XPathNavigatorReader.cs
- MessageQueueKey.cs
- DataGridCommandEventArgs.cs
- BamlResourceContent.cs
- ResourceDefaultValueAttribute.cs
- WebPartTransformerCollection.cs
- CollectionDataContractAttribute.cs
- returneventsaver.cs
- GridViewDeletedEventArgs.cs
- XmlSchemaAnnotated.cs
- NameNode.cs
- GlobalItem.cs
- TraceEventCache.cs
- SafeProcessHandle.cs
- Cloud.cs
- SplitContainer.cs
- DataReceivedEventArgs.cs
- WebBrowserBase.cs
- ElementNotEnabledException.cs
- ColorConverter.cs
- RIPEMD160.cs
- DataServiceQueryContinuation.cs
- HMACSHA1.cs
- EventData.cs
- StringStorage.cs
- RuleInfoComparer.cs
- SpellerHighlightLayer.cs
- UnsafeNativeMethodsMilCoreApi.cs
- PropertyToken.cs
- _FixedSizeReader.cs
- securestring.cs
- HtmlImage.cs
- FixedSOMContainer.cs
- StringStorage.cs
- PrincipalPermission.cs
- StateWorkerRequest.cs
- GeneralTransform2DTo3D.cs
- TextComposition.cs
- HttpPostedFile.cs
- Subset.cs
- DataGridAutoFormat.cs
- RequiredAttributeAttribute.cs
- ListViewDeletedEventArgs.cs
- TreeNodeBindingCollection.cs
- Path.cs
- WindowsSlider.cs
- ObjectDataSourceFilteringEventArgs.cs
- CapabilitiesRule.cs
- ProjectionCamera.cs