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
- WindowsStatic.cs
- columnmapfactory.cs
- Panel.cs
- CachedTypeface.cs
- PauseStoryboard.cs
- ContentAlignmentEditor.cs
- KeysConverter.cs
- SamlDelegatingWriter.cs
- SetterBase.cs
- DependentTransaction.cs
- GlobalProxySelection.cs
- SafeNativeMethods.cs
- FreezableOperations.cs
- ScaleTransform3D.cs
- AspProxy.cs
- WorkflowInstanceExtensionProvider.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- AuthorizationSection.cs
- OutputCacheSection.cs
- DeviceOverridableAttribute.cs
- OleDbFactory.cs
- OrderedDictionary.cs
- DesignParameter.cs
- LoginUtil.cs
- MatcherBuilder.cs
- _SpnDictionary.cs
- SymDocumentType.cs
- MemberHolder.cs
- SystemIcmpV4Statistics.cs
- StringConcat.cs
- HttpsTransportBindingElement.cs
- BinaryObjectReader.cs
- WebPartTransformerAttribute.cs
- PerformanceCounterPermissionEntry.cs
- IsolatedStoragePermission.cs
- PageStatePersister.cs
- FunctionImportElement.cs
- SiteMapDataSourceView.cs
- AutomationPattern.cs
- WebPartTracker.cs
- Int16Storage.cs
- Encoder.cs
- CustomSignedXml.cs
- TextWriterTraceListener.cs
- ManagementObjectCollection.cs
- KnownTypesProvider.cs
- DecimalAnimationBase.cs
- NativeObjectSecurity.cs
- CacheAxisQuery.cs
- Int16KeyFrameCollection.cs
- XmlAnyAttributeAttribute.cs
- UIElementHelper.cs
- InteropAutomationProvider.cs
- Keywords.cs
- DetailsView.cs
- CopyNamespacesAction.cs
- followingquery.cs
- DataMisalignedException.cs
- XmlNodeComparer.cs
- AlternateView.cs
- PermissionSetEnumerator.cs
- FlowDocumentPageViewerAutomationPeer.cs
- ConfigurationConverterBase.cs
- TaskFormBase.cs
- LinkDesigner.cs
- HTMLTextWriter.cs
- ToolStripItemImageRenderEventArgs.cs
- AuthenticationSection.cs
- URIFormatException.cs
- TextAdaptor.cs
- XmlMessageFormatter.cs
- Part.cs
- URL.cs
- SecurityKeyUsage.cs
- ValidationPropertyAttribute.cs
- RangeEnumerable.cs
- SettingsPropertyValueCollection.cs
- WebPartsSection.cs
- ToolStripPanelRenderEventArgs.cs
- WebPartUtil.cs
- SerializationObjectManager.cs
- AutomationPeer.cs
- ManagementEventArgs.cs
- EmptyImpersonationContext.cs
- UserNameSecurityTokenAuthenticator.cs
- _ConnectionGroup.cs
- EdgeModeValidation.cs
- ProcessHostServerConfig.cs
- ComplexTypeEmitter.cs
- TypeExtensions.cs
- GenerateScriptTypeAttribute.cs
- StandardOleMarshalObject.cs
- SettingsPropertyValue.cs
- COM2ExtendedBrowsingHandler.cs
- TextBoxAutoCompleteSourceConverter.cs
- RequestCacheManager.cs
- HttpPostProtocolImporter.cs
- AssociationSet.cs
- SymDocumentType.cs
- ProvidersHelper.cs