Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / 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: [....]/sites/Avalon/Specs/Text%20Formatting%20API.doc // // Created: 1-7-2005 [....] ([....]) // //----------------------------------------------------------------------- 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
- AjaxFrameworkAssemblyAttribute.cs
- ProgressBar.cs
- OrCondition.cs
- WmlFormAdapter.cs
- DataGridViewRowHeaderCell.cs
- GenerateHelper.cs
- DispatcherObject.cs
- NavigationCommands.cs
- ControlEvent.cs
- DetailsViewInsertedEventArgs.cs
- XamlGridLengthSerializer.cs
- Animatable.cs
- DataGrid.cs
- UserPreferenceChangedEventArgs.cs
- WeakReferenceKey.cs
- XmlIgnoreAttribute.cs
- DocumentOrderQuery.cs
- WebConfigurationHost.cs
- InnerItemCollectionView.cs
- AxisAngleRotation3D.cs
- PeerNameRecordCollection.cs
- BuilderElements.cs
- WebBrowserEvent.cs
- ColorAnimationUsingKeyFrames.cs
- DocumentSequence.cs
- GenericEnumerator.cs
- MasterPage.cs
- ValidatedControlConverter.cs
- ReadOnlyNameValueCollection.cs
- EntityTransaction.cs
- PackagePart.cs
- XmlSchemaSequence.cs
- ActionMismatchAddressingException.cs
- XmlReflectionMember.cs
- MaskPropertyEditor.cs
- DataGridViewCellEventArgs.cs
- Attributes.cs
- StatusBarPanelClickEvent.cs
- PageCatalogPart.cs
- ConfigurationSettings.cs
- SiteMapPathDesigner.cs
- ConfigurationElementCollection.cs
- PropertyEmitterBase.cs
- StateDesigner.CommentLayoutGlyph.cs
- ArrangedElement.cs
- EditingMode.cs
- JsonDeserializer.cs
- Point3DCollectionConverter.cs
- Win32MouseDevice.cs
- WindowsSysHeader.cs
- ExcludePathInfo.cs
- PrivilegedConfigurationManager.cs
- UpdatePanelTriggerCollection.cs
- FlowchartSizeFeature.cs
- MenuItemBinding.cs
- ThreadPool.cs
- PropertyMappingExceptionEventArgs.cs
- WebEventTraceProvider.cs
- MetabaseServerConfig.cs
- ModelFactory.cs
- SubstitutionResponseElement.cs
- OdbcEnvironment.cs
- SlipBehavior.cs
- CommandConverter.cs
- ObjectReferenceStack.cs
- EncodingDataItem.cs
- GenericsInstances.cs
- InterleavedZipPartStream.cs
- PersonalizationState.cs
- DataGridViewRowStateChangedEventArgs.cs
- Formatter.cs
- TableLayoutRowStyleCollection.cs
- WindowsGraphicsCacheManager.cs
- HighlightComponent.cs
- ArrangedElementCollection.cs
- HasCopySemanticsAttribute.cs
- DispatcherFrame.cs
- DataBoundControlAdapter.cs
- SafeSecurityHelper.cs
- RootBrowserWindowProxy.cs
- EdmScalarPropertyAttribute.cs
- DataServiceResponse.cs
- DataGridViewRowCancelEventArgs.cs
- EmbeddedMailObjectsCollection.cs
- AttributeUsageAttribute.cs
- MailDefinitionBodyFileNameEditor.cs
- SecureEnvironment.cs
- DataReceivedEventArgs.cs
- XmlSchemaGroup.cs
- Propagator.JoinPropagator.cs
- _AutoWebProxyScriptEngine.cs
- Rotation3D.cs
- SpellCheck.cs
- XmlILAnnotation.cs
- ToolStripSettings.cs
- ConfigurationValidatorBase.cs
- WorkflowPrinting.cs
- BlurBitmapEffect.cs
- MenuItemCollection.cs
- OleDbReferenceCollection.cs