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
- StrongNameMembershipCondition.cs
- Cursors.cs
- ExtractCollection.cs
- Constant.cs
- InstanceHandleConflictException.cs
- LockedAssemblyCache.cs
- MultiPageTextView.cs
- CodeDOMUtility.cs
- FrameworkElement.cs
- SafeNativeMethods.cs
- SafeProcessHandle.cs
- StatusBarAutomationPeer.cs
- DragEventArgs.cs
- JsonQNameDataContract.cs
- ImageFormat.cs
- NativeWindow.cs
- Int16AnimationUsingKeyFrames.cs
- OdbcConnectionOpen.cs
- ParallelTimeline.cs
- PropertyContainer.cs
- FileLoadException.cs
- ThreadAbortException.cs
- TextRangeAdaptor.cs
- DataGridTextBox.cs
- DebugController.cs
- PageRouteHandler.cs
- SoapIgnoreAttribute.cs
- CommandDevice.cs
- ApplicationDirectory.cs
- OleDbCommandBuilder.cs
- TreeViewAutomationPeer.cs
- LocationChangedEventArgs.cs
- XmlIlGenerator.cs
- ZoneButton.cs
- WebPartConnectionsCancelVerb.cs
- ApplicationContext.cs
- OdbcConnectionHandle.cs
- MediaEntryAttribute.cs
- SigningDialog.cs
- LoggedException.cs
- Light.cs
- BuiltInExpr.cs
- AnnotationService.cs
- DiscoveryDocumentSearchPattern.cs
- Int32AnimationBase.cs
- ClientOperationFormatterProvider.cs
- CommonDialog.cs
- QuaternionAnimation.cs
- SiteMap.cs
- UnsafeNativeMethodsTablet.cs
- EventItfInfo.cs
- DataGridViewCellStyleChangedEventArgs.cs
- WrappedReader.cs
- InstanceKeyCollisionException.cs
- LinqDataSourceContextEventArgs.cs
- Win32PrintDialog.cs
- DataGridViewTopLeftHeaderCell.cs
- DescriptionAttribute.cs
- MetafileHeader.cs
- SystemFonts.cs
- HwndAppCommandInputProvider.cs
- DbProviderFactory.cs
- ThaiBuddhistCalendar.cs
- StateChangeEvent.cs
- RSAPKCS1SignatureFormatter.cs
- ComponentCommands.cs
- IFlowDocumentViewer.cs
- EnumMember.cs
- HttpUnhandledOperationInvoker.cs
- SchemaCollectionCompiler.cs
- WrapperEqualityComparer.cs
- ILGenerator.cs
- SchemaComplexType.cs
- XmlAtomicValue.cs
- ChameleonKey.cs
- ProfilePropertyNameValidator.cs
- StickyNoteContentControl.cs
- FrugalList.cs
- ResourceDisplayNameAttribute.cs
- HyperLink.cs
- NameSpaceEvent.cs
- PrimaryKeyTypeConverter.cs
- TdsParser.cs
- MembershipValidatePasswordEventArgs.cs
- PreProcessInputEventArgs.cs
- WebPartConnectionsCancelVerb.cs
- BaseDataList.cs
- SqlBooleanizer.cs
- XamlDesignerSerializationManager.cs
- Trustee.cs
- RawUIStateInputReport.cs
- ConnectionPoint.cs
- FormsAuthenticationUserCollection.cs
- LinkLabelLinkClickedEvent.cs
- CustomAttributeFormatException.cs
- ConstraintEnumerator.cs
- XPathNodeList.cs
- ErrorHandler.cs
- Color.cs
- CalendarDateRange.cs