Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / textformatting / IndexedGlyphRun.cs / 1305600 / 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
- ToolStripItemClickedEventArgs.cs
- PersistenceProviderElement.cs
- sqlnorm.cs
- Catch.cs
- CopyAttributesAction.cs
- CaseInsensitiveComparer.cs
- QilUnary.cs
- CommandSet.cs
- CustomLineCap.cs
- Selection.cs
- Types.cs
- NativeObjectSecurity.cs
- GlyphRunDrawing.cs
- WindowsSysHeader.cs
- PngBitmapDecoder.cs
- RegexGroup.cs
- XmlSchemaInclude.cs
- TdsEnums.cs
- WebPartConnectionCollection.cs
- DataSourceCacheDurationConverter.cs
- RegexGroupCollection.cs
- Camera.cs
- BitmapEffectInputData.cs
- CodeTypeOfExpression.cs
- GuidTagList.cs
- DecoderReplacementFallback.cs
- SoapIgnoreAttribute.cs
- PaintValueEventArgs.cs
- UnsignedPublishLicense.cs
- SizeFConverter.cs
- RequestTimeoutManager.cs
- DataGridViewCellConverter.cs
- OracleDataReader.cs
- ParameterElement.cs
- ReturnType.cs
- WpfWebRequestHelper.cs
- Brush.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- DropTarget.cs
- FrameworkElement.cs
- DBSchemaTable.cs
- GridEntryCollection.cs
- QilXmlReader.cs
- ClientScriptItemCollection.cs
- BufferedGraphicsContext.cs
- DesignerView.xaml.cs
- Vector.cs
- ListenerElementsCollection.cs
- FileDialogPermission.cs
- _NegotiateClient.cs
- XamlHostingSection.cs
- PreservationFileWriter.cs
- documentsequencetextpointer.cs
- OptimizerPatterns.cs
- ButtonFieldBase.cs
- FontCacheLogic.cs
- XmlEncApr2001.cs
- TransactionFlowBindingElement.cs
- Automation.cs
- ValidationRuleCollection.cs
- ResourcesChangeInfo.cs
- WebResourceAttribute.cs
- FormViewInsertEventArgs.cs
- DbProviderServices.cs
- __FastResourceComparer.cs
- DataTemplateSelector.cs
- ActivityValidator.cs
- TextOptionsInternal.cs
- ProxyElement.cs
- DataContract.cs
- KeyboardEventArgs.cs
- DifferencingCollection.cs
- ISAPIWorkerRequest.cs
- DocumentPaginator.cs
- GridLengthConverter.cs
- SimplePropertyEntry.cs
- securitycriticaldataClass.cs
- EventItfInfo.cs
- DataGridView.cs
- ToolBarTray.cs
- IndependentAnimationStorage.cs
- DrawingServices.cs
- DesignerLoader.cs
- DataComponentNameHandler.cs
- XmlValidatingReaderImpl.cs
- WorkflowViewStateService.cs
- SqlClientFactory.cs
- PrivilegedConfigurationManager.cs
- XdrBuilder.cs
- AsymmetricKeyExchangeFormatter.cs
- ReachDocumentPageSerializer.cs
- WebPartManager.cs
- ExtendLockCommand.cs
- EmptyQuery.cs
- DefinitionBase.cs
- SystemIPv4InterfaceProperties.cs
- FileSystemInfo.cs
- ObjectKeyFrameCollection.cs
- base64Transforms.cs
- Header.cs