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
- QilInvokeLateBound.cs
- XsdValidatingReader.cs
- PointAnimation.cs
- WS2007FederationHttpBindingCollectionElement.cs
- ExpressionConverter.cs
- PeerNameResolver.cs
- Hex.cs
- WorkerRequest.cs
- CollectionViewGroupInternal.cs
- BlurEffect.cs
- BindableTemplateBuilder.cs
- EditorOptionAttribute.cs
- QueryCacheEntry.cs
- GridViewColumnHeader.cs
- CheckBox.cs
- EmptyControlCollection.cs
- ViewBase.cs
- FunctionCommandText.cs
- WebBrowserNavigatingEventHandler.cs
- HtmlShim.cs
- FrameworkElementFactory.cs
- AttributeQuery.cs
- HttpChannelHelper.cs
- PointAnimationUsingPath.cs
- DataGridViewColumn.cs
- CompilationPass2Task.cs
- ResourceAssociationSet.cs
- XomlCompilerHelpers.cs
- CompositionAdorner.cs
- XmlCountingReader.cs
- ColumnResizeUndoUnit.cs
- TableLayout.cs
- baseshape.cs
- UserControl.cs
- Helper.cs
- LayoutExceptionEventArgs.cs
- AnnotationResourceChangedEventArgs.cs
- StandardToolWindows.cs
- MD5CryptoServiceProvider.cs
- infer.cs
- AuthenticatingEventArgs.cs
- CompiledRegexRunnerFactory.cs
- rsa.cs
- EnumValAlphaComparer.cs
- DataGridDetailsPresenterAutomationPeer.cs
- NamedElement.cs
- XPathBinder.cs
- GridErrorDlg.cs
- ZipPackagePart.cs
- Misc.cs
- QuaternionValueSerializer.cs
- Compiler.cs
- HttpRuntimeSection.cs
- Vector3DAnimationUsingKeyFrames.cs
- EventKeyword.cs
- TypefaceMap.cs
- ProxySimple.cs
- EdmItemError.cs
- X509CertificateValidator.cs
- BaseCAMarshaler.cs
- HostElement.cs
- PnrpPeerResolver.cs
- ListenerElementsCollection.cs
- QueryContinueDragEvent.cs
- WindowsFormsLinkLabel.cs
- SocketSettings.cs
- SafeArrayRankMismatchException.cs
- ContentPosition.cs
- DisplayToken.cs
- FrameworkContentElementAutomationPeer.cs
- ServicePoint.cs
- ApplicationManager.cs
- IntersectQueryOperator.cs
- KeyboardEventArgs.cs
- FigureParaClient.cs
- SignedPkcs7.cs
- WebPartZoneCollection.cs
- HttpProfileGroupBase.cs
- WindowsFont.cs
- DataGridViewImageCell.cs
- InstancePersistenceContext.cs
- TreeViewCancelEvent.cs
- FormViewDeletedEventArgs.cs
- ControlPaint.cs
- StringExpressionSet.cs
- HwndKeyboardInputProvider.cs
- RSAPKCS1KeyExchangeFormatter.cs
- DetailsViewCommandEventArgs.cs
- NativeMethods.cs
- VisualStateGroup.cs
- DemultiplexingDispatchMessageFormatter.cs
- SchemaImporterExtensionElement.cs
- BevelBitmapEffect.cs
- TagPrefixCollection.cs
- _SpnDictionary.cs
- DbDeleteCommandTree.cs
- DataGridViewBand.cs
- GetIndexBinder.cs
- GridViewRowEventArgs.cs
- FontNamesConverter.cs