Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / textformatting / TextBounds.cs / 1305600 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- GridErrorDlg.cs
- ButtonStandardAdapter.cs
- FixedHighlight.cs
- ViewBase.cs
- StaticDataManager.cs
- AsyncOperation.cs
- BuildManager.cs
- ValueUtilsSmi.cs
- BooleanFacetDescriptionElement.cs
- ImageDrawing.cs
- TrackingRecord.cs
- ComponentChangingEvent.cs
- NetSectionGroup.cs
- Animatable.cs
- VerbConverter.cs
- ZipPackagePart.cs
- Schema.cs
- DataGridSortCommandEventArgs.cs
- SweepDirectionValidation.cs
- InternalMappingException.cs
- ValidatorCompatibilityHelper.cs
- QueryOptionExpression.cs
- X509RawDataKeyIdentifierClause.cs
- TableParaClient.cs
- ScrollItemPattern.cs
- SqlDataSourceSelectingEventArgs.cs
- ServicePointManager.cs
- XmlDataLoader.cs
- Vector3DKeyFrameCollection.cs
- CreateRefExpr.cs
- ListDependantCardsRequest.cs
- ExtensibleClassFactory.cs
- TableFieldsEditor.cs
- IncrementalReadDecoders.cs
- GlyphCache.cs
- safesecurityhelperavalon.cs
- ArrayExtension.cs
- _SecureChannel.cs
- ConnectionStringsSection.cs
- WebPartEditorOkVerb.cs
- ResourceReferenceExpressionConverter.cs
- HtmlLiteralTextAdapter.cs
- ActivityCodeGenerator.cs
- TransformerConfigurationWizardBase.cs
- FixedSOMTable.cs
- ValidationPropertyAttribute.cs
- ProxyAttribute.cs
- SoapAttributes.cs
- DesignParameter.cs
- ExceptionHandlersDesigner.cs
- ContentHostHelper.cs
- ReferencedCollectionType.cs
- TypeLibConverter.cs
- UriSectionReader.cs
- StateRuntime.cs
- BindingBase.cs
- RequestBringIntoViewEventArgs.cs
- GetCertificateRequest.cs
- HintTextMaxWidthConverter.cs
- UIElement3DAutomationPeer.cs
- GifBitmapDecoder.cs
- MembershipSection.cs
- OleCmdHelper.cs
- XappLauncher.cs
- GlobalEventManager.cs
- ExtendedProtectionPolicyTypeConverter.cs
- PolyBezierSegment.cs
- PasswordBoxAutomationPeer.cs
- ImageButton.cs
- URLBuilder.cs
- BuildProvider.cs
- MergePropertyDescriptor.cs
- MasterPageParser.cs
- WebPartZoneCollection.cs
- DrawItemEvent.cs
- DataObjectCopyingEventArgs.cs
- ClosableStream.cs
- MobileControl.cs
- RegexCompiler.cs
- SegmentInfo.cs
- RijndaelManaged.cs
- SiteMapNode.cs
- XPathDocumentIterator.cs
- AsymmetricAlgorithm.cs
- RequestCacheManager.cs
- HtmlInputControl.cs
- CellConstantDomain.cs
- StaticFileHandler.cs
- HttpDebugHandler.cs
- HttpHandlerAction.cs
- CodeObjectCreateExpression.cs
- ListBoxItem.cs
- ValidatorCompatibilityHelper.cs
- DescendentsWalkerBase.cs
- DisplayMemberTemplateSelector.cs
- DataMisalignedException.cs
- DocumentSchemaValidator.cs
- AssociationType.cs
- LinkDescriptor.cs
- XamlRtfConverter.cs