Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- Decimal.cs
- PropertyCollection.cs
- HtmlTableCellCollection.cs
- ThousandthOfEmRealPoints.cs
- ReliableChannelListener.cs
- HelloMessage11.cs
- WriteTimeStream.cs
- RegionIterator.cs
- GeometryDrawing.cs
- ProviderCommandInfoUtils.cs
- XmlQueryContext.cs
- OpCodes.cs
- WebPartTracker.cs
- AlgoModule.cs
- Itemizer.cs
- ProcessModelInfo.cs
- ParameterBuilder.cs
- DetailsViewPageEventArgs.cs
- XslNumber.cs
- WebBrowsableAttribute.cs
- XmlCharacterData.cs
- AccessDataSource.cs
- FreeFormDragDropManager.cs
- GroupBox.cs
- ProtocolViolationException.cs
- BevelBitmapEffect.cs
- LogManagementAsyncResult.cs
- baseshape.cs
- CheckableControlBaseAdapter.cs
- Timeline.cs
- FilterableAttribute.cs
- ConsoleKeyInfo.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- Tuple.cs
- GridViewRow.cs
- TextEditorParagraphs.cs
- Typography.cs
- MimeAnyImporter.cs
- RbTree.cs
- IndexedDataBuffer.cs
- DataContractSerializerFaultFormatter.cs
- RepeaterItemEventArgs.cs
- EventlogProvider.cs
- LinqDataSourceDisposeEventArgs.cs
- PolyBezierSegment.cs
- Help.cs
- RefreshEventArgs.cs
- XmlQueryTypeFactory.cs
- SystemInfo.cs
- CategoryGridEntry.cs
- COM2ExtendedUITypeEditor.cs
- FlowDocumentPaginator.cs
- SingleObjectCollection.cs
- PageMediaType.cs
- BitmapEffectvisualstate.cs
- DataGridSortingEventArgs.cs
- VectorCollection.cs
- BitmapEffectDrawingContent.cs
- XmlObjectSerializerReadContextComplexJson.cs
- Effect.cs
- MatrixKeyFrameCollection.cs
- CodeBlockBuilder.cs
- ObfuscationAttribute.cs
- Model3DGroup.cs
- ModifyActivitiesPropertyDescriptor.cs
- Maps.cs
- WebBrowserNavigatingEventHandler.cs
- ChameleonKey.cs
- Component.cs
- WindowShowOrOpenTracker.cs
- StringDictionaryCodeDomSerializer.cs
- CommandEventArgs.cs
- CustomError.cs
- XmlWriterSettings.cs
- TreeViewCancelEvent.cs
- TouchPoint.cs
- ObjectStateEntryDbDataRecord.cs
- WebPartCancelEventArgs.cs
- CopyCodeAction.cs
- CodeTryCatchFinallyStatement.cs
- IntSecurity.cs
- COMException.cs
- IndicFontClient.cs
- WindowAutomationPeer.cs
- CalloutQueueItem.cs
- WindowsGrip.cs
- WriterOutput.cs
- BindUriHelper.cs
- ListParagraph.cs
- SmiXetterAccessMap.cs
- SqlRemoveConstantOrderBy.cs
- CroppedBitmap.cs
- InvalidEnumArgumentException.cs
- Int32CollectionValueSerializer.cs
- PageAdapter.cs
- DebugController.cs
- IdentityReference.cs
- WindowClosedEventArgs.cs
- BlurEffect.cs
- DependencyPropertyChangedEventArgs.cs