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
- BitmapFrameDecode.cs
- DataTrigger.cs
- SqlVisitor.cs
- CharacterMetricsDictionary.cs
- ValueSerializerAttribute.cs
- IImplicitResourceProvider.cs
- IImplicitResourceProvider.cs
- base64Transforms.cs
- StateItem.cs
- DataGridLength.cs
- StaticTextPointer.cs
- isolationinterop.cs
- CompilationRelaxations.cs
- METAHEADER.cs
- QilIterator.cs
- BitmapEffectInputConnector.cs
- TextSelectionProcessor.cs
- CreateUserErrorEventArgs.cs
- EllipseGeometry.cs
- ActivityLocationReferenceEnvironment.cs
- ContextActivityUtils.cs
- Bind.cs
- ControlDesigner.cs
- RotateTransform3D.cs
- MouseActionConverter.cs
- XmlWriterTraceListener.cs
- XmlSchemaType.cs
- XmlCharacterData.cs
- As.cs
- FontDriver.cs
- ObjectQuery_EntitySqlExtensions.cs
- SmiEventSink_Default.cs
- XsdBuildProvider.cs
- MultiDataTrigger.cs
- SmtpLoginAuthenticationModule.cs
- Classification.cs
- ItemMap.cs
- DropDownList.cs
- InitializationEventAttribute.cs
- HwndAppCommandInputProvider.cs
- OneOf.cs
- BuildProvidersCompiler.cs
- TextElementCollection.cs
- FirstMatchCodeGroup.cs
- PersonalizationProvider.cs
- ColorBlend.cs
- BooleanAnimationUsingKeyFrames.cs
- HttpWriter.cs
- XmlAttributeAttribute.cs
- SqlLiftWhereClauses.cs
- ListViewUpdatedEventArgs.cs
- HandleRef.cs
- Speller.cs
- EllipseGeometry.cs
- BlockUIContainer.cs
- ElapsedEventArgs.cs
- UrlPath.cs
- DataControlFieldHeaderCell.cs
- OnOperation.cs
- Control.cs
- EntityDataSourceContextDisposingEventArgs.cs
- FileLogRecordHeader.cs
- AccessText.cs
- GPPOINTF.cs
- Function.cs
- WebPartEditVerb.cs
- Literal.cs
- RectangleConverter.cs
- followingsibling.cs
- DoubleLinkList.cs
- XmlCDATASection.cs
- HandlerFactoryCache.cs
- RegisteredScript.cs
- CodeTypeParameter.cs
- elementinformation.cs
- Base64Encoding.cs
- TreeViewItem.cs
- PerCallInstanceContextProvider.cs
- ToolStripCollectionEditor.cs
- ControlCollection.cs
- TransactionsSectionGroup.cs
- StateManagedCollection.cs
- TransformerTypeCollection.cs
- RegistrationServices.cs
- CancelEventArgs.cs
- ImportContext.cs
- AssemblyUtil.cs
- BitmapEffect.cs
- RadioButtonPopupAdapter.cs
- PageCache.cs
- DataProtection.cs
- Query.cs
- StrokeRenderer.cs
- BrowserCapabilitiesFactoryBase.cs
- CodeTryCatchFinallyStatement.cs
- TextServicesProperty.cs
- DelegateBodyWriter.cs
- ColumnMapVisitor.cs
- DataGridColumnCollection.cs
- StreamAsIStream.cs