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
- BamlStream.cs
- ToolStripGripRenderEventArgs.cs
- DesignerDataConnection.cs
- HttpHandlerActionCollection.cs
- ComplexTypeEmitter.cs
- UnmanagedMemoryStreamWrapper.cs
- InstancePersistenceException.cs
- SelectingProviderEventArgs.cs
- ExpressionBuilderCollection.cs
- StyleBamlTreeBuilder.cs
- BooleanToVisibilityConverter.cs
- TextHidden.cs
- ListItemCollection.cs
- RecordBuilder.cs
- DotExpr.cs
- XmlElementAttribute.cs
- XmlSchemaSet.cs
- MethodCallConverter.cs
- MobileControlBuilder.cs
- AutomationPropertyInfo.cs
- ZoneMembershipCondition.cs
- login.cs
- Transform3DGroup.cs
- ByteStreamMessageUtility.cs
- SecurityUniqueId.cs
- DataRelation.cs
- ConstraintEnumerator.cs
- SecurityRuntime.cs
- ProxyRpc.cs
- EdmItemError.cs
- RegexNode.cs
- ProcessHost.cs
- HttpCookieCollection.cs
- MobileFormsAuthentication.cs
- util.cs
- ScriptResourceInfo.cs
- PerfProviderCollection.cs
- SafeSystemMetrics.cs
- RootBrowserWindow.cs
- HandleExceptionArgs.cs
- CheckBoxStandardAdapter.cs
- ServiceReflector.cs
- isolationinterop.cs
- TemplateManager.cs
- ContextBase.cs
- RequestNavigateEventArgs.cs
- CertificateElement.cs
- EntityDataSourceDesignerHelper.cs
- Geometry.cs
- ExpressionReplacer.cs
- GridViewColumnCollectionChangedEventArgs.cs
- precedingsibling.cs
- Serializer.cs
- ServiceAuthorizationBehavior.cs
- InvalidOleVariantTypeException.cs
- BroadcastEventHelper.cs
- DependentList.cs
- AsymmetricSignatureDeformatter.cs
- newinstructionaction.cs
- HtmlInputSubmit.cs
- StylusButtonEventArgs.cs
- NativeRightsManagementAPIsStructures.cs
- ProcessModuleCollection.cs
- TextFindEngine.cs
- PageAdapter.cs
- XmlDictionaryReaderQuotas.cs
- Int32Rect.cs
- ResourceCategoryAttribute.cs
- StateMachineSubscription.cs
- figurelength.cs
- DataGridView.cs
- FixedSOMFixedBlock.cs
- HttpInputStream.cs
- TailPinnedEventArgs.cs
- FormParameter.cs
- FileLogRecordStream.cs
- QuaternionAnimation.cs
- FieldAccessException.cs
- __ComObject.cs
- ConnectionStringSettingsCollection.cs
- AddInController.cs
- APCustomTypeDescriptor.cs
- AttributeCallbackBuilder.cs
- HttpPostedFile.cs
- HttpListener.cs
- UserControlBuildProvider.cs
- DBCommand.cs
- _BufferOffsetSize.cs
- DispatcherExceptionFilterEventArgs.cs
- DoubleIndependentAnimationStorage.cs
- BuildProvider.cs
- PermissionSet.cs
- RtfControlWordInfo.cs
- CalendarDay.cs
- Int32Collection.cs
- SQLBinary.cs
- DrawingBrush.cs
- FileClassifier.cs
- RelationshipType.cs
- IPAddress.cs