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
- TableLayoutColumnStyleCollection.cs
- NavigatingCancelEventArgs.cs
- SR.cs
- XmlSchemaValidationException.cs
- CodeTypeConstructor.cs
- SoapEnvelopeProcessingElement.cs
- PageCodeDomTreeGenerator.cs
- XmlSchemaRedefine.cs
- LongCountAggregationOperator.cs
- ButtonPopupAdapter.cs
- DockingAttribute.cs
- MemberDescriptor.cs
- XXXInfos.cs
- DriveInfo.cs
- Vector3dCollection.cs
- ActivityExecutionContextCollection.cs
- AttributeInfo.cs
- DataServices.cs
- SimpleType.cs
- DBNull.cs
- CookielessHelper.cs
- StreamGeometry.cs
- CorrelationService.cs
- WebBrowserBase.cs
- ControlParameter.cs
- PersonalizationAdministration.cs
- PersonalizableAttribute.cs
- WebPartRestoreVerb.cs
- ProtectedProviderSettings.cs
- Int32Collection.cs
- SqlParameter.cs
- Expander.cs
- FileLoadException.cs
- RectangleHotSpot.cs
- ICollection.cs
- TemplateNodeContextMenu.cs
- ConversionContext.cs
- FixedPageAutomationPeer.cs
- MsmqIntegrationProcessProtocolHandler.cs
- InstanceOwnerException.cs
- UriPrefixTable.cs
- SqlProviderManifest.cs
- ScriptingWebServicesSectionGroup.cs
- WinInet.cs
- SubpageParaClient.cs
- UrlAuthFailureHandler.cs
- RawStylusInputCustomData.cs
- SmiRequestExecutor.cs
- HtmlEncodedRawTextWriter.cs
- MediaEntryAttribute.cs
- QueryOperator.cs
- TextElementCollection.cs
- IfAction.cs
- AuthenticodeSignatureInformation.cs
- SurrogateSelector.cs
- HandlerBase.cs
- CookieParameter.cs
- ThreadStaticAttribute.cs
- RenderData.cs
- ResourceIDHelper.cs
- LogicalTreeHelper.cs
- NetMsmqSecurityElement.cs
- CAGDesigner.cs
- XmlTypeMapping.cs
- Margins.cs
- TransactionFilter.cs
- XmlSchemaCollection.cs
- SHA1CryptoServiceProvider.cs
- CodeSubDirectoriesCollection.cs
- IApplicationTrustManager.cs
- RelationshipConverter.cs
- BinHexEncoding.cs
- MatrixTransform.cs
- FontNameConverter.cs
- ComboBoxAutomationPeer.cs
- SafeNativeMethods.cs
- _SafeNetHandles.cs
- GcHandle.cs
- DataBoundControl.cs
- KeyboardEventArgs.cs
- ModelItemImpl.cs
- EnumDataContract.cs
- MiniMapControl.xaml.cs
- String.cs
- PrivilegeNotHeldException.cs
- SqlDataSourceEnumerator.cs
- __ConsoleStream.cs
- HtmlElementErrorEventArgs.cs
- RecognizerBase.cs
- XmlSchemaSimpleType.cs
- DataGridViewBand.cs
- ExpressionVisitor.cs
- WebReferencesBuildProvider.cs
- CompilerGlobalScopeAttribute.cs
- TableLayoutPanelCellPosition.cs
- CatalogZone.cs
- SqlUserDefinedTypeAttribute.cs
- TdsRecordBufferSetter.cs
- SafeSystemMetrics.cs
- XmlResolver.cs