Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / System / Windows / Media / textformatting / TextBounds.cs / 1 / TextBounds.cs
//------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation // // File: TextBounds.cs // // Contents: Bounding rectangle of text range and text run // // Spec: http://team/sites/Avalon/Specs/Text%20Formatting%20API.doc // // Created: 1-7-2005 Worachai Chaoweeraprasit (wchao) // //----------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Windows; namespace System.Windows.Media.TextFormatting { ////// The bounding rectangle of a range of characters /// public sealed class TextBounds { ////// Constructing TextBounds object /// internal TextBounds( Rect bounds, FlowDirection flowDirection, IListrunBounds ) { _bounds = bounds; _flowDirection = flowDirection; _runBounds = runBounds; } /// /// Bounds rectangle /// public Rect Rectangle { get { return _bounds; } } ////// Get a list of run bounding rectangles /// ///Array of text run bounds public IListTextRunBounds { get { return _runBounds; } } /// /// Text flow direction inside the boundary rectangle /// public FlowDirection FlowDirection { get { return _flowDirection; } } private FlowDirection _flowDirection; private Rect _bounds; private IList_runBounds; } /// /// The bounding rectangle of text run /// public sealed class TextRunBounds { ////// Constructing TextRunBounds /// internal TextRunBounds( Rect bounds, int cpFirst, int cpEnd, TextRun textRun ) { _cpFirst = cpFirst; _cch = cpEnd - cpFirst; _bounds = bounds; _textRun = textRun; } ////// First text source character index of text run /// public int TextSourceCharacterIndex { get { return _cpFirst; } } ////// character length of bounded text run /// public int Length { get { return _cch; } } ////// Text run bounding rectangle /// public Rect Rectangle { get { return _bounds; } } ////// text run /// public TextRun TextRun { get { return _textRun; } } private int _cpFirst; private int _cch; private Rect _bounds; private TextRun _textRun; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation // // File: TextBounds.cs // // Contents: Bounding rectangle of text range and text run // // Spec: http://team/sites/Avalon/Specs/Text%20Formatting%20API.doc // // Created: 1-7-2005 Worachai Chaoweeraprasit (wchao) // //----------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Windows; namespace System.Windows.Media.TextFormatting { ////// The bounding rectangle of a range of characters /// public sealed class TextBounds { ////// Constructing TextBounds object /// internal TextBounds( Rect bounds, FlowDirection flowDirection, IListrunBounds ) { _bounds = bounds; _flowDirection = flowDirection; _runBounds = runBounds; } /// /// Bounds rectangle /// public Rect Rectangle { get { return _bounds; } } ////// Get a list of run bounding rectangles /// ///Array of text run bounds public IListTextRunBounds { get { return _runBounds; } } /// /// Text flow direction inside the boundary rectangle /// public FlowDirection FlowDirection { get { return _flowDirection; } } private FlowDirection _flowDirection; private Rect _bounds; private IList_runBounds; } /// /// The bounding rectangle of text run /// public sealed class TextRunBounds { ////// Constructing TextRunBounds /// internal TextRunBounds( Rect bounds, int cpFirst, int cpEnd, TextRun textRun ) { _cpFirst = cpFirst; _cch = cpEnd - cpFirst; _bounds = bounds; _textRun = textRun; } ////// First text source character index of text run /// public int TextSourceCharacterIndex { get { return _cpFirst; } } ////// character length of bounded text run /// public int Length { get { return _cch; } } ////// Text run bounding rectangle /// public Rect Rectangle { get { return _bounds; } } ////// text run /// public TextRun TextRun { get { return _textRun; } } private int _cpFirst; private int _cch; private Rect _bounds; private TextRun _textRun; } } // 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
- DSASignatureFormatter.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- PublisherMembershipCondition.cs
- DataRelation.cs
- UnaryNode.cs
- ShapingEngine.cs
- SettingsProperty.cs
- OleDbRowUpdatedEvent.cs
- diagnosticsswitches.cs
- PrimitiveList.cs
- CompilerScope.cs
- DocumentViewerConstants.cs
- MailSettingsSection.cs
- ExtensionFile.cs
- RemotingClientProxy.cs
- LiteralControl.cs
- HybridCollection.cs
- _CommandStream.cs
- Pointer.cs
- InstanceKey.cs
- WorkflowMarkupElementEventArgs.cs
- FrameworkElementAutomationPeer.cs
- CapabilitiesState.cs
- CodeDirectoryCompiler.cs
- CharacterHit.cs
- Property.cs
- PropertiesTab.cs
- HttpRequestBase.cs
- Int16Converter.cs
- ItemsControlAutomationPeer.cs
- IPAddressCollection.cs
- PathNode.cs
- TrackingServices.cs
- NamespaceDecl.cs
- SeekStoryboard.cs
- TableLayoutRowStyleCollection.cs
- RecommendedAsConfigurableAttribute.cs
- sqlcontext.cs
- SettingsBindableAttribute.cs
- GeneralTransform.cs
- XPathPatternParser.cs
- OutputCacheProfileCollection.cs
- MetadataArtifactLoaderResource.cs
- OleStrCAMarshaler.cs
- BaseProcessor.cs
- SettingsAttributes.cs
- SecurityDocument.cs
- XpsFilter.cs
- ExpressionBuilder.cs
- ResXResourceWriter.cs
- XmlSchemaComplexContent.cs
- CaseStatementSlot.cs
- Perspective.cs
- Error.cs
- NullExtension.cs
- ApplicationHost.cs
- RichTextBoxAutomationPeer.cs
- DesignerDataTableBase.cs
- ColorAnimationUsingKeyFrames.cs
- CreateUserWizardStep.cs
- ExtensionWindowHeader.cs
- PageAsyncTask.cs
- RelatedEnd.cs
- XPathConvert.cs
- ComponentCollection.cs
- XMLDiffLoader.cs
- WindowsFormsSynchronizationContext.cs
- RequestCachingSection.cs
- GACIdentityPermission.cs
- CqlBlock.cs
- WebPartMinimizeVerb.cs
- XmlParser.cs
- EndpointDesigner.cs
- SemanticBasicElement.cs
- BaseParagraph.cs
- InfoCardRSACryptoProvider.cs
- ContainerUIElement3D.cs
- WebServiceData.cs
- AutomationAttributeInfo.cs
- Double.cs
- SendSecurityHeader.cs
- ListSortDescription.cs
- SQLInt16Storage.cs
- DbProviderSpecificTypePropertyAttribute.cs
- GACMembershipCondition.cs
- MultiAsyncResult.cs
- StrongNameKeyPair.cs
- TriggerAction.cs
- TextureBrush.cs
- SQLBytes.cs
- Pkcs7Signer.cs
- UserControlParser.cs
- BitmapInitialize.cs
- OleDbEnumerator.cs
- Processor.cs
- SqlNode.cs
- CodeRemoveEventStatement.cs
- OperationContractAttribute.cs
- XmlnsPrefixAttribute.cs
- WebPartConnectVerb.cs