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
- MethodAccessException.cs
- GridViewRowPresenter.cs
- base64Transforms.cs
- TreeNodeStyle.cs
- DiscoveryDocumentLinksPattern.cs
- EncryptedXml.cs
- TreeViewEvent.cs
- AffineTransform3D.cs
- CollectionBuilder.cs
- FullTextBreakpoint.cs
- ReflectTypeDescriptionProvider.cs
- DataSourceHelper.cs
- ToolboxComponentsCreatingEventArgs.cs
- ReliableRequestSessionChannel.cs
- _UncName.cs
- DoubleLinkListEnumerator.cs
- LinqDataSourceDeleteEventArgs.cs
- ConfigXmlWhitespace.cs
- TrackingProfileManager.cs
- BufferedWebEventProvider.cs
- DataSourceSelectArguments.cs
- SchemaMapping.cs
- Crypto.cs
- TypeResolvingOptions.cs
- NetworkInterface.cs
- DataBinder.cs
- SessionEndedEventArgs.cs
- Pair.cs
- XmlDataSource.cs
- NoneExcludedImageIndexConverter.cs
- DataProtection.cs
- PathFigureCollection.cs
- DocumentGridPage.cs
- _SSPIWrapper.cs
- DnsEndPoint.cs
- ClientTarget.cs
- UInt32.cs
- GlyphElement.cs
- GenerateDerivedKeyRequest.cs
- TrustLevelCollection.cs
- SizeChangedInfo.cs
- AssemblyResolver.cs
- SharedStatics.cs
- DataSourceExpression.cs
- String.cs
- Vars.cs
- AttributeProviderAttribute.cs
- NTAccount.cs
- ProfileBuildProvider.cs
- EntityCommand.cs
- ScaleTransform3D.cs
- OdbcError.cs
- ThousandthOfEmRealPoints.cs
- PageContent.cs
- CheckBoxList.cs
- ResourceReferenceExpressionConverter.cs
- TextContainer.cs
- ExtensionCollection.cs
- URLBuilder.cs
- AudioSignalProblemOccurredEventArgs.cs
- PeerName.cs
- ExpressionVisitorHelpers.cs
- SapiRecognizer.cs
- Positioning.cs
- DataRelation.cs
- XamlNamespaceHelper.cs
- PlatformCulture.cs
- SqlNodeAnnotations.cs
- DataGridViewRowCollection.cs
- InputScopeConverter.cs
- Menu.cs
- DetailsViewModeEventArgs.cs
- ConnectionManagementElementCollection.cs
- SqlProviderManifest.cs
- SrgsRuleRef.cs
- ResolvedKeyFrameEntry.cs
- GridViewColumnHeader.cs
- DockPanel.cs
- NameScopePropertyAttribute.cs
- XsdBuildProvider.cs
- ActiveXSite.cs
- CodeChecksumPragma.cs
- RsaKeyGen.cs
- AtomContentProperty.cs
- Grant.cs
- AlphabeticalEnumConverter.cs
- ProxyHwnd.cs
- WindowsAuthenticationModule.cs
- BrowserCapabilitiesCodeGenerator.cs
- DrawingAttributesDefaultValueFactory.cs
- Image.cs
- HttpConfigurationContext.cs
- ConfigurationStrings.cs
- EntityCommand.cs
- CompensationTokenData.cs
- DataColumnChangeEvent.cs
- __Filters.cs
- HtmlInputReset.cs
- ListViewAutomationPeer.cs
- ManipulationVelocities.cs