Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- WebContext.cs
- StylusLogic.cs
- HttpCapabilitiesSectionHandler.cs
- PerformanceCounterCategory.cs
- GridViewUpdateEventArgs.cs
- WeakHashtable.cs
- smtpconnection.cs
- Decimal.cs
- RequiredAttributeAttribute.cs
- Msec.cs
- BinaryReader.cs
- ListViewItemEventArgs.cs
- EntryIndex.cs
- TextElementCollectionHelper.cs
- UIElementPropertyUndoUnit.cs
- Material.cs
- Shape.cs
- MailDefinitionBodyFileNameEditor.cs
- WindowsScroll.cs
- DateTimeParse.cs
- XmlNullResolver.cs
- SimpleMailWebEventProvider.cs
- UidManager.cs
- ImageCodecInfoPrivate.cs
- RtType.cs
- DataServiceConfiguration.cs
- GridViewAutomationPeer.cs
- RegexMatchCollection.cs
- WindowsTab.cs
- ZoomPercentageConverter.cs
- TextEffectResolver.cs
- SqlNodeTypeOperators.cs
- SqlRowUpdatingEvent.cs
- TextChange.cs
- DataGridViewCellStateChangedEventArgs.cs
- DBSqlParser.cs
- SinglePageViewer.cs
- ProviderSettings.cs
- RegistryPermission.cs
- CustomAttributeBuilder.cs
- _ProxyRegBlob.cs
- SHA512.cs
- FamilyTypefaceCollection.cs
- HttpWebRequestElement.cs
- MatchingStyle.cs
- SQLConvert.cs
- IconHelper.cs
- TypeDescriptor.cs
- ContextItem.cs
- ExtensionSimplifierMarkupObject.cs
- DataPointer.cs
- TrackBarRenderer.cs
- SemaphoreFullException.cs
- SimpleTextLine.cs
- AssemblyCacheEntry.cs
- ProviderConnectionPointCollection.cs
- PieceDirectory.cs
- DesignerValidatorAdapter.cs
- ChildDocumentBlock.cs
- EncoderParameter.cs
- SiteMap.cs
- HashHelper.cs
- XmlAttributeAttribute.cs
- TextShapeableCharacters.cs
- StrokeNodeOperations2.cs
- InvokeSchedule.cs
- QilValidationVisitor.cs
- PerformanceCounters.cs
- WrapPanel.cs
- _Win32.cs
- ErrorLog.cs
- DistributedTransactionPermission.cs
- SymLanguageVendor.cs
- InputBinding.cs
- GenericArgumentsUpdater.cs
- TraceLog.cs
- OperationCanceledException.cs
- FormatConvertedBitmap.cs
- HtmlElement.cs
- State.cs
- EnumMember.cs
- TypeUtil.cs
- CallbackValidator.cs
- safelinkcollection.cs
- DynamicResourceExtension.cs
- PowerModeChangedEventArgs.cs
- SessionPageStatePersister.cs
- VisualStyleInformation.cs
- SerTrace.cs
- path.cs
- FixedHyperLink.cs
- ClientScriptManagerWrapper.cs
- OracleDataReader.cs
- TemplateParser.cs
- Int16Storage.cs
- NamespaceTable.cs
- WebEventCodes.cs
- Grant.cs
- WebPartUtil.cs
- IsolatedStorageFilePermission.cs