Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- SqlComparer.cs
- DataExpression.cs
- OneToOneMappingSerializer.cs
- InputGestureCollection.cs
- FontUnit.cs
- EmptyQuery.cs
- LoginView.cs
- input.cs
- DeviceSpecificDialogCachedState.cs
- BulletedListDesigner.cs
- MailDefinitionBodyFileNameEditor.cs
- CompiledQueryCacheKey.cs
- PropertiesTab.cs
- ReferencedCollectionType.cs
- DocumentPageTextView.cs
- HttpStreamXmlDictionaryReader.cs
- InvalidOperationException.cs
- DirectionalLight.cs
- QilIterator.cs
- FakeModelItemImpl.cs
- JavaScriptString.cs
- MimeTypeAttribute.cs
- ExceptionUtil.cs
- DataList.cs
- ExpressionStringBuilder.cs
- SecUtil.cs
- DataSetMappper.cs
- TemplateControlBuildProvider.cs
- DynamicPhysicalDiscoSearcher.cs
- GPPOINT.cs
- GreenMethods.cs
- ByteKeyFrameCollection.cs
- Rijndael.cs
- RadioButtonBaseAdapter.cs
- LineSegment.cs
- NonVisualControlAttribute.cs
- DataPagerCommandEventArgs.cs
- OracleConnectionFactory.cs
- GeneralTransform3DTo2DTo3D.cs
- DataExpression.cs
- HttpFileCollection.cs
- ProxyWebPart.cs
- DeferredSelectedIndexReference.cs
- XmlPreloadedResolver.cs
- GridItemProviderWrapper.cs
- HttpListenerElement.cs
- HybridObjectCache.cs
- NameSpaceExtractor.cs
- IsolatedStorageException.cs
- PerspectiveCamera.cs
- PrinterResolution.cs
- PropertyMapper.cs
- WmlSelectionListAdapter.cs
- SponsorHelper.cs
- initElementDictionary.cs
- EntityConnectionStringBuilder.cs
- EntityContainerAssociationSet.cs
- CodeDomSerializerBase.cs
- Module.cs
- RevocationPoint.cs
- DbConnectionPoolIdentity.cs
- ActionMismatchAddressingException.cs
- ECDiffieHellmanCngPublicKey.cs
- UnknownBitmapEncoder.cs
- WindowsScroll.cs
- Error.cs
- MetadataCache.cs
- StateManagedCollection.cs
- FocusWithinProperty.cs
- FlowDocument.cs
- ReversePositionQuery.cs
- TrackBar.cs
- InputQueueChannel.cs
- SqlException.cs
- InboundActivityHelper.cs
- ArraySortHelper.cs
- InvalidDataException.cs
- BaseServiceProvider.cs
- DeferredReference.cs
- ContainerSelectorGlyph.cs
- wmiprovider.cs
- LoadRetryHandler.cs
- Message.cs
- ConfigDefinitionUpdates.cs
- WebPartConnectionsEventArgs.cs
- X509Certificate.cs
- regiisutil.cs
- entityreference_tresulttype.cs
- XmlWriter.cs
- MonthCalendar.cs
- Model3DGroup.cs
- XmlSchemaSequence.cs
- MarkupWriter.cs
- TraceSwitch.cs
- EncodingInfo.cs
- XmlSchemaSimpleContentRestriction.cs
- WebEventTraceProvider.cs
- XmlIlVisitor.cs
- DomainLiteralReader.cs
- controlskin.cs