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
- TabletCollection.cs
- HttpsTransportElement.cs
- CodeCommentStatementCollection.cs
- Point3DIndependentAnimationStorage.cs
- GraphicsContainer.cs
- XPathExpr.cs
- UpdateCompiler.cs
- AggregateNode.cs
- DataGridTableCollection.cs
- Freezable.cs
- KeyValuePair.cs
- CheckBox.cs
- ColumnWidthChangingEvent.cs
- DataGrid.cs
- WizardStepCollectionEditor.cs
- ListControl.cs
- WebPartDisplayModeCollection.cs
- Int32RectConverter.cs
- SplitterEvent.cs
- CounterSetInstanceCounterDataSet.cs
- WindowsTokenRoleProvider.cs
- DecimalConverter.cs
- RootDesignerSerializerAttribute.cs
- DebugView.cs
- DataRowView.cs
- XsltFunctions.cs
- PerfCounterSection.cs
- XmlUtil.cs
- Win32Exception.cs
- WizardForm.cs
- CallbackValidatorAttribute.cs
- EntityConnectionStringBuilderItem.cs
- ListQueryResults.cs
- NoResizeSelectionBorderGlyph.cs
- SchemaNames.cs
- SQLDoubleStorage.cs
- PipelineModuleStepContainer.cs
- XmlDataSourceNodeDescriptor.cs
- Random.cs
- ValidationEventArgs.cs
- RegexRunner.cs
- ExtendedTransformFactory.cs
- FileSystemEventArgs.cs
- GlyphCache.cs
- MissingSatelliteAssemblyException.cs
- SliderAutomationPeer.cs
- VirtualizingPanel.cs
- MergeLocalizationDirectives.cs
- AssemblyCollection.cs
- DataSet.cs
- StylusPointCollection.cs
- WindowsAuthenticationEventArgs.cs
- TreeNodeCollectionEditorDialog.cs
- EntityTypeEmitter.cs
- DebugHandleTracker.cs
- CodeCompileUnit.cs
- ImageAttributes.cs
- PropertyDescriptorComparer.cs
- UTF7Encoding.cs
- SystemTcpConnection.cs
- TransformCollection.cs
- BamlTreeNode.cs
- Simplifier.cs
- SqlDataSourceFilteringEventArgs.cs
- CommandEventArgs.cs
- AnimationClockResource.cs
- Condition.cs
- AdornerPresentationContext.cs
- FilterableAttribute.cs
- HttpApplication.cs
- StringInfo.cs
- HtmlInputFile.cs
- CommandSet.cs
- EventWaitHandle.cs
- IdentityManager.cs
- ValidationHelpers.cs
- BitmapEffectInput.cs
- TypefaceCollection.cs
- WebUtility.cs
- XsltInput.cs
- categoryentry.cs
- PeerObject.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- StatusBarAutomationPeer.cs
- PreservationFileReader.cs
- ScrollItemPatternIdentifiers.cs
- HwndSubclass.cs
- WebColorConverter.cs
- InternalDispatchObject.cs
- AdRotator.cs
- SecurityIdentifierConverter.cs
- shaper.cs
- LicenseProviderAttribute.cs
- MergeFilterQuery.cs
- Qualifier.cs
- ConvertEvent.cs
- CredentialCache.cs
- activationcontext.cs
- SqlUdtInfo.cs
- DesignerImageAdapter.cs