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
- ProfileServiceManager.cs
- MailHeaderInfo.cs
- SqlDataSource.cs
- HttpListenerPrefixCollection.cs
- DataAdapter.cs
- InkPresenterAutomationPeer.cs
- XmlBinaryReader.cs
- ListParaClient.cs
- TraceRecord.cs
- Visual.cs
- PkcsUtils.cs
- AdRotator.cs
- ModuleBuilderData.cs
- EventRouteFactory.cs
- XmlSerializer.cs
- TextProperties.cs
- Style.cs
- ProcessThread.cs
- StringCollection.cs
- FilteredDataSetHelper.cs
- TypeUtils.cs
- WebPartTracker.cs
- PixelShader.cs
- PreservationFileReader.cs
- WebBrowserDocumentCompletedEventHandler.cs
- DesignerWidgets.cs
- XsltSettings.cs
- State.cs
- ExpressionVisitorHelpers.cs
- ProfileBuildProvider.cs
- HttpWebResponse.cs
- WebPartConnectionsEventArgs.cs
- FrameworkElementFactory.cs
- GlobalizationSection.cs
- nulltextcontainer.cs
- InstancePersistenceCommandException.cs
- Token.cs
- OneOfConst.cs
- ScriptResourceInfo.cs
- CodeIterationStatement.cs
- TemporaryBitmapFile.cs
- ManipulationDeltaEventArgs.cs
- ReadWriteSpinLock.cs
- ScrollItemProviderWrapper.cs
- DbDataReader.cs
- TableLayoutPanel.cs
- ExpressionValueEditor.cs
- DurableEnlistmentState.cs
- SecurityTokenAttachmentMode.cs
- EventData.cs
- StylusPoint.cs
- ObjectStateFormatter.cs
- OdbcCommandBuilder.cs
- KeyValuePair.cs
- TableLayoutStyle.cs
- LinkLabel.cs
- NotCondition.cs
- ToolStripArrowRenderEventArgs.cs
- ModulesEntry.cs
- SingleKeyFrameCollection.cs
- ResourceExpressionBuilder.cs
- XPathNodeHelper.cs
- MetabaseSettingsIis7.cs
- XsltSettings.cs
- RegexNode.cs
- PathSegment.cs
- ConditionChanges.cs
- ConsoleTraceListener.cs
- ProfileParameter.cs
- TypeHelpers.cs
- ContextActivityUtils.cs
- Action.cs
- ConvertersCollection.cs
- ViewLoader.cs
- EntityClassGenerator.cs
- SecurityHelper.cs
- counter.cs
- HttpCookieCollection.cs
- RadioButton.cs
- OleCmdHelper.cs
- FormsAuthenticationTicket.cs
- ProtocolsConfigurationEntry.cs
- WSFederationHttpSecurityElement.cs
- RepeaterItemCollection.cs
- FacetValueContainer.cs
- CategoryGridEntry.cs
- SchemaElement.cs
- Set.cs
- TextRangeEditTables.cs
- RequiredAttributeAttribute.cs
- PixelFormat.cs
- XsdValidatingReader.cs
- DateRangeEvent.cs
- TCPListener.cs
- InvocationExpression.cs
- CommonDialog.cs
- MergeFilterQuery.cs
- TransactionBehavior.cs
- WorkflowInlining.cs
- InputLanguageCollection.cs