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
- ClientEventManager.cs
- AuthenticationException.cs
- SiteMapNodeItem.cs
- FloatUtil.cs
- ThousandthOfEmRealDoubles.cs
- ExceptionRoutedEventArgs.cs
- XmlFormatExtensionPrefixAttribute.cs
- TimelineCollection.cs
- SaveLedgerEntryRequest.cs
- Visual.cs
- SecurityTokenProvider.cs
- SystemGatewayIPAddressInformation.cs
- RuntimeIdentifierPropertyAttribute.cs
- Hex.cs
- InputLanguageProfileNotifySink.cs
- RegexFCD.cs
- DataGridDesigner.cs
- SystemWebSectionGroup.cs
- BasicExpandProvider.cs
- DrawingServices.cs
- IteratorDescriptor.cs
- ConditionCollection.cs
- BasicDesignerLoader.cs
- PathSegmentCollection.cs
- TextElementCollection.cs
- TextRangeEditLists.cs
- PropertyInformation.cs
- RectConverter.cs
- NativeWindow.cs
- WhiteSpaceTrimStringConverter.cs
- PointCollection.cs
- SchemaEntity.cs
- TrackingProfileCache.cs
- UnicastIPAddressInformationCollection.cs
- RequestQueue.cs
- PresentationTraceSources.cs
- JsonCollectionDataContract.cs
- InvalidFilterCriteriaException.cs
- ModelTreeEnumerator.cs
- DataSetUtil.cs
- NetDispatcherFaultException.cs
- TextSearch.cs
- EventLogWatcher.cs
- AssemblyInfo.cs
- SqlNamer.cs
- DispatcherFrame.cs
- DataGridCellItemAutomationPeer.cs
- DispatcherOperation.cs
- XPathException.cs
- GraphicsContainer.cs
- SuppressMergeCheckAttribute.cs
- TdsEnums.cs
- Page.cs
- DataGridColumnHeader.cs
- Reference.cs
- RoutedUICommand.cs
- Operand.cs
- IndexingContentUnit.cs
- TitleStyle.cs
- MergePropertyDescriptor.cs
- EditorPartCollection.cs
- ContentElement.cs
- AnonymousIdentificationModule.cs
- SettingsAttributeDictionary.cs
- Bitmap.cs
- HtmlGenericControl.cs
- VariantWrapper.cs
- GeneralTransform3DCollection.cs
- AndMessageFilterTable.cs
- updateconfighost.cs
- CodeValidator.cs
- InstanceContextMode.cs
- GroupLabel.cs
- SystemPens.cs
- StateRuntime.cs
- RightNameExpirationInfoPair.cs
- RegexReplacement.cs
- DataContract.cs
- NonDualMessageSecurityOverHttpElement.cs
- TraceSection.cs
- UnlockCardRequest.cs
- AutomationEventArgs.cs
- LowerCaseStringConverter.cs
- ConfigUtil.cs
- StrokeNode.cs
- ManifestResourceInfo.cs
- TreeNodeCollectionEditorDialog.cs
- WeakReferenceList.cs
- TimeStampChecker.cs
- ResolveDuplexAsyncResult.cs
- AutomationProperties.cs
- ScrollableControl.cs
- IndexOutOfRangeException.cs
- rsa.cs
- ButtonAutomationPeer.cs
- ExceptionRoutedEventArgs.cs
- SafeCloseHandleCritical.cs
- XPathNodePointer.cs
- Label.cs
- AliasedExpr.cs