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
- XPathParser.cs
- WebControlsSection.cs
- CodeGenerator.cs
- JumpTask.cs
- InfoCardRequestException.cs
- EncoderExceptionFallback.cs
- ConnectionManagementSection.cs
- ScriptReferenceEventArgs.cs
- CodeSubDirectory.cs
- SoapSchemaExporter.cs
- StdValidatorsAndConverters.cs
- Storyboard.cs
- NativeWrapper.cs
- ErrorHandler.cs
- ConfigurationLockCollection.cs
- TdsEnums.cs
- ipaddressinformationcollection.cs
- Axis.cs
- ConfigUtil.cs
- CodeTypeDeclarationCollection.cs
- GPPOINT.cs
- Vector3DAnimation.cs
- AnnotationService.cs
- DecoderReplacementFallback.cs
- IdleTimeoutMonitor.cs
- ViewRendering.cs
- PropertyTab.cs
- ImageCodecInfoPrivate.cs
- XamlToRtfParser.cs
- DataList.cs
- Point3DCollectionValueSerializer.cs
- Pipe.cs
- XmlReturnReader.cs
- ApplicationContext.cs
- ArgumentOutOfRangeException.cs
- MaterialGroup.cs
- ServiceModelActivationSectionGroup.cs
- SrgsElementFactory.cs
- StrokeIntersection.cs
- Form.cs
- SerTrace.cs
- OdbcConnectionString.cs
- CodeDOMUtility.cs
- ConfigurationStrings.cs
- DataGridDesigner.cs
- SQLInt32Storage.cs
- InfocardClientCredentials.cs
- AudioFormatConverter.cs
- PlatformNotSupportedException.cs
- ConstraintStruct.cs
- GeometryHitTestParameters.cs
- dsa.cs
- ZipPackage.cs
- EmptyCollection.cs
- BrushValueSerializer.cs
- LocalizeDesigner.cs
- FocusManager.cs
- TogglePattern.cs
- Util.cs
- _CookieModule.cs
- RootProfilePropertySettingsCollection.cs
- ComIntegrationManifestGenerator.cs
- WeakEventManager.cs
- DataSourceCacheDurationConverter.cs
- StringFormat.cs
- ConnectionStringEditor.cs
- Expression.DebuggerProxy.cs
- SqlClientWrapperSmiStream.cs
- RenderingBiasValidation.cs
- XmlDataImplementation.cs
- SystemIcons.cs
- DataSetMappper.cs
- ToolStripItem.cs
- PartialList.cs
- EntityDataSourceColumn.cs
- TextEndOfParagraph.cs
- WebServiceResponseDesigner.cs
- WebHttpDispatchOperationSelectorData.cs
- ValueQuery.cs
- RequiredFieldValidator.cs
- SqlMethodAttribute.cs
- counter.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- SqlDataSourceStatusEventArgs.cs
- ValidatorCompatibilityHelper.cs
- PeerNearMe.cs
- CopyAction.cs
- SettingsProviderCollection.cs
- GraphicsState.cs
- PostBackOptions.cs
- QilFunction.cs
- Underline.cs
- LightweightCodeGenerator.cs
- NamespaceExpr.cs
- MachineKeyConverter.cs
- XmlSigningNodeWriter.cs
- AutoResetEvent.cs
- ViewStateException.cs
- HexParser.cs
- UriTemplateLiteralQueryValue.cs