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
- CryptoApi.cs
- FileLogRecordHeader.cs
- RequiredFieldValidator.cs
- RbTree.cs
- ToggleButtonAutomationPeer.cs
- DecoderFallbackWithFailureFlag.cs
- SqlDataSourceStatusEventArgs.cs
- LineSegment.cs
- AssemblyBuilderData.cs
- ProfileEventArgs.cs
- ConstraintCollection.cs
- ComNativeDescriptor.cs
- ObfuscationAttribute.cs
- BinaryObjectInfo.cs
- RegexReplacement.cs
- SafeFileMappingHandle.cs
- Int32AnimationBase.cs
- PeerContact.cs
- BinaryQueryOperator.cs
- DependencySource.cs
- XPathParser.cs
- XmlDocumentSerializer.cs
- Vector3D.cs
- DataGridViewRowCollection.cs
- ControlSerializer.cs
- ConfigurationManagerHelperFactory.cs
- SchemaComplexType.cs
- SyndicationDeserializer.cs
- CustomWebEventKey.cs
- SystemUdpStatistics.cs
- log.cs
- MetafileHeaderWmf.cs
- KnownTypesHelper.cs
- CommandValueSerializer.cs
- SiteMapDataSourceView.cs
- TimersDescriptionAttribute.cs
- StringUtil.cs
- DrawingCollection.cs
- WebPart.cs
- PeerTransportBindingElement.cs
- smtppermission.cs
- OperationPickerDialog.designer.cs
- DBSqlParserTable.cs
- TaiwanLunisolarCalendar.cs
- ObjectViewListener.cs
- TypeElement.cs
- StorageBasedPackageProperties.cs
- ObjectStateFormatter.cs
- WebRequestModuleElement.cs
- RegexCompiler.cs
- GlobalizationSection.cs
- Vector3dCollection.cs
- DropShadowBitmapEffect.cs
- IInstanceContextProvider.cs
- MediaCommands.cs
- CultureInfoConverter.cs
- AutomationIdentifierGuids.cs
- Latin1Encoding.cs
- TextParaClient.cs
- SharedPersonalizationStateInfo.cs
- ValidationPropertyAttribute.cs
- ValueTable.cs
- UIElementCollection.cs
- DbDataAdapter.cs
- ADConnectionHelper.cs
- TraceContextRecord.cs
- ResourceDictionaryCollection.cs
- View.cs
- ToolStripStatusLabel.cs
- TitleStyle.cs
- __Filters.cs
- ValidationRule.cs
- ProgressiveCrcCalculatingStream.cs
- IpcChannel.cs
- VScrollBar.cs
- OleDbRowUpdatingEvent.cs
- NumericPagerField.cs
- DesignerAutoFormatCollection.cs
- WebPartDisplayModeCollection.cs
- SmiEventSink.cs
- EventProviderBase.cs
- Int16AnimationUsingKeyFrames.cs
- BamlCollectionHolder.cs
- CompilationRelaxations.cs
- TextProperties.cs
- BamlStream.cs
- X509CertificateCollection.cs
- CursorInteropHelper.cs
- SqlDataRecord.cs
- MenuItemStyle.cs
- ProcessHostFactoryHelper.cs
- OpenFileDialog.cs
- MasterPageBuildProvider.cs
- State.cs
- SchemaHelper.cs
- SmtpNetworkElement.cs
- ResourceAssociationTypeEnd.cs
- Win32.cs
- CodeRemoveEventStatement.cs
- PartitionerQueryOperator.cs