Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- MethodBody.cs
- TableStyle.cs
- MetabaseServerConfig.cs
- DataGridViewRowsAddedEventArgs.cs
- Update.cs
- CodeCatchClause.cs
- ScriptingSectionGroup.cs
- BreakRecordTable.cs
- WebPartTransformerAttribute.cs
- SecurityManager.cs
- UnsafeCollabNativeMethods.cs
- ChannelPoolSettings.cs
- TextDecorationUnitValidation.cs
- RuntimeConfigLKG.cs
- SecureConversationServiceElement.cs
- XmlFormatExtensionAttribute.cs
- HuffModule.cs
- PaperSize.cs
- CfgParser.cs
- ConfigXmlElement.cs
- LambdaExpression.cs
- ToolBarDesigner.cs
- Attribute.cs
- CodeRemoveEventStatement.cs
- ProfileSettings.cs
- VisualBasicHelper.cs
- ContainerVisual.cs
- GeneralTransform3DGroup.cs
- Models.cs
- DataGridParentRows.cs
- Cloud.cs
- ResourceCategoryAttribute.cs
- HttpCacheVaryByContentEncodings.cs
- DescendentsWalkerBase.cs
- ResourceExpressionEditor.cs
- TextRangeProviderWrapper.cs
- FtpRequestCacheValidator.cs
- PipeException.cs
- StrokeCollectionConverter.cs
- TreeViewAutomationPeer.cs
- InProcStateClientManager.cs
- Triplet.cs
- SqlConnection.cs
- StyleCollection.cs
- PropertyConverter.cs
- CatalogZoneBase.cs
- TextBoxAutoCompleteSourceConverter.cs
- TimeSpan.cs
- HttpAsyncResult.cs
- DataObjectPastingEventArgs.cs
- SubMenuStyleCollection.cs
- IisTraceListener.cs
- GenericWebPart.cs
- DependencyObjectProvider.cs
- DoubleLink.cs
- SqlUnionizer.cs
- WindowsUserNameCachingSecurityTokenAuthenticator.cs
- SQLBinary.cs
- Container.cs
- AppDomain.cs
- ButtonField.cs
- DesignerDataSchemaClass.cs
- CompositeActivityTypeDescriptorProvider.cs
- SqlWebEventProvider.cs
- EnumMember.cs
- DataSourceGroupCollection.cs
- Identifier.cs
- DateTimeHelper.cs
- GenericEnumerator.cs
- COM2IProvidePropertyBuilderHandler.cs
- Win32.cs
- EventEntry.cs
- TargetConverter.cs
- PeerUnsafeNativeMethods.cs
- ExpandedWrapper.cs
- Serializer.cs
- AddressingVersion.cs
- TypeRestriction.cs
- ExpressionEditorSheet.cs
- DispatcherProcessingDisabled.cs
- BindableAttribute.cs
- MethodCallConverter.cs
- IntSecurity.cs
- CacheOutputQuery.cs
- BamlStream.cs
- WindowsFormsHostPropertyMap.cs
- NetMsmqSecurityElement.cs
- MetadataCache.cs
- RegistryConfigurationProvider.cs
- GlyphingCache.cs
- Content.cs
- DataListItemCollection.cs
- SchemaNames.cs
- GeneralTransform.cs
- ToolStripItemCollection.cs
- Panel.cs
- PermissionToken.cs
- HeaderCollection.cs
- FontInfo.cs
- InvokeCompletedEventArgs.cs