Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- Pair.cs
- ComplexTypeEmitter.cs
- TextWriter.cs
- ConfigurationStrings.cs
- MediaSystem.cs
- SqlGatherProducedAliases.cs
- Process.cs
- EUCJPEncoding.cs
- GridItemProviderWrapper.cs
- AppDomainAttributes.cs
- EnumerableCollectionView.cs
- ServicePoint.cs
- Attachment.cs
- PerformanceCounter.cs
- ZipIOExtraFieldZip64Element.cs
- ReadonlyMessageFilter.cs
- Itemizer.cs
- CodePageEncoding.cs
- RadioButton.cs
- DateTimeSerializationSection.cs
- KeySplineConverter.cs
- ProfilePropertySettings.cs
- FunctionUpdateCommand.cs
- ObjectTag.cs
- ContainerSelectorBehavior.cs
- TextEditorSelection.cs
- SqlInternalConnection.cs
- XpsStructure.cs
- Rotation3D.cs
- ServicePointManager.cs
- GlobalEventManager.cs
- ObjectSet.cs
- DBSchemaTable.cs
- DataGridViewCellStyleBuilderDialog.cs
- RootBuilder.cs
- ByteStreamMessage.cs
- XmlCharCheckingReader.cs
- Trace.cs
- webclient.cs
- XmlNodeChangedEventArgs.cs
- TemplateAction.cs
- MemoryMappedFileSecurity.cs
- FileNotFoundException.cs
- MergePropertyDescriptor.cs
- WindowsListView.cs
- TextMetrics.cs
- HtmlInputText.cs
- MethodImplAttribute.cs
- SystemIPv6InterfaceProperties.cs
- StateMachineAction.cs
- EntityExpressionVisitor.cs
- iisPickupDirectory.cs
- SapiRecognizer.cs
- CryptoStream.cs
- ValidatedControlConverter.cs
- WindowShowOrOpenTracker.cs
- TemplateLookupAction.cs
- Encoder.cs
- MatchingStyle.cs
- OutKeywords.cs
- TextSimpleMarkerProperties.cs
- KeyboardDevice.cs
- SqlConnection.cs
- WorkflowTimerService.cs
- Utils.cs
- MultiPageTextView.cs
- BinaryHeap.cs
- Stylus.cs
- ServicePoint.cs
- TextUtf8RawTextWriter.cs
- ClientFormsAuthenticationCredentials.cs
- ping.cs
- OperatorExpressions.cs
- GridViewDesigner.cs
- OutputWindow.cs
- ReceiveReply.cs
- LinqExpressionNormalizer.cs
- WebServicesDescriptionAttribute.cs
- PersonalizationAdministration.cs
- IProvider.cs
- WindowsTitleBar.cs
- AutomationPropertyInfo.cs
- ComponentResourceManager.cs
- XmlSignificantWhitespace.cs
- SystemResourceKey.cs
- coordinatorfactory.cs
- TPLETWProvider.cs
- InvalidFilterCriteriaException.cs
- PartitionedDataSource.cs
- ConfigXmlSignificantWhitespace.cs
- HtmlEncodedRawTextWriter.cs
- DetailsViewAutoFormat.cs
- ResponseBodyWriter.cs
- BooleanExpr.cs
- FontWeights.cs
- SymmetricAlgorithm.cs
- nulltextnavigator.cs
- MetadataUtil.cs
- TdsValueSetter.cs
- LabelAutomationPeer.cs