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
- AsyncResult.cs
- EmptyStringExpandableObjectConverter.cs
- DesignerWebPartChrome.cs
- PropertyChangeTracker.cs
- RepeatBehavior.cs
- ProtocolReflector.cs
- XmlSchemaResource.cs
- filewebresponse.cs
- DataObjectFieldAttribute.cs
- TabControlToolboxItem.cs
- CommunicationObjectAbortedException.cs
- IdentityHolder.cs
- ImageSourceConverter.cs
- TimerElapsedEvenArgs.cs
- KeyEvent.cs
- LinearKeyFrames.cs
- ProxyWebPartManager.cs
- TextPointerBase.cs
- Configuration.cs
- NetSectionGroup.cs
- Item.cs
- HandlerBase.cs
- StringComparer.cs
- RawTextInputReport.cs
- updatecommandorderer.cs
- HeaderPanel.cs
- GeometryValueSerializer.cs
- RawStylusActions.cs
- SingleAnimationBase.cs
- Authorization.cs
- PathFigure.cs
- DynamicPropertyReader.cs
- SineEase.cs
- SerializationEventsCache.cs
- ApplicationFileCodeDomTreeGenerator.cs
- StringToken.cs
- XamlReaderHelper.cs
- CodeCatchClause.cs
- RegexCharClass.cs
- AnnotationComponentChooser.cs
- ObservableDictionary.cs
- RightsManagementUser.cs
- MessageSecurityTokenVersion.cs
- TreeNodeBindingCollection.cs
- AssemblyBuilderData.cs
- HttpDebugHandler.cs
- WebControlAdapter.cs
- Oid.cs
- WindowsSolidBrush.cs
- BindingExpressionUncommonField.cs
- RtfNavigator.cs
- ExceptionRoutedEventArgs.cs
- recordstate.cs
- XpsFixedPageReaderWriter.cs
- KeyValueConfigurationElement.cs
- PngBitmapDecoder.cs
- UmAlQuraCalendar.cs
- CacheChildrenQuery.cs
- PenThread.cs
- documentsequencetextview.cs
- AutomationEventArgs.cs
- IncrementalReadDecoders.cs
- DataGridViewCellValueEventArgs.cs
- WebPartConnectionsConfigureVerb.cs
- AssemblyBuilderData.cs
- HuffCodec.cs
- FontCollection.cs
- DataGridViewCellValueEventArgs.cs
- WebPartCollection.cs
- hresults.cs
- BaseCodeDomTreeGenerator.cs
- MulticastIPAddressInformationCollection.cs
- SqlUdtInfo.cs
- LinqDataSourceHelper.cs
- safesecurityhelperavalon.cs
- DefaultPrintController.cs
- LOSFormatter.cs
- SystemIcons.cs
- MessageDesigner.cs
- ItemCheckEvent.cs
- SQLByteStorage.cs
- FigureParaClient.cs
- RootBrowserWindowAutomationPeer.cs
- XmlMessageFormatter.cs
- TextDecorationCollection.cs
- ControlBuilder.cs
- PointF.cs
- TextEditorMouse.cs
- RequestStatusBarUpdateEventArgs.cs
- SettingsPropertyValueCollection.cs
- IERequestCache.cs
- IndexedGlyphRun.cs
- Style.cs
- HyperLinkDataBindingHandler.cs
- SafeProcessHandle.cs
- TemplateXamlTreeBuilder.cs
- SystemResourceKey.cs
- DataControlButton.cs
- NonSerializedAttribute.cs
- GenericsInstances.cs