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
- WebPartsSection.cs
- ResourceReferenceExpressionConverter.cs
- TCEAdapterGenerator.cs
- ContentOnlyMessage.cs
- BoundConstants.cs
- basemetadatamappingvisitor.cs
- BitmapPalettes.cs
- DataGridViewLayoutData.cs
- ForceCopyBuildProvider.cs
- OleDbPermission.cs
- XamlToRtfParser.cs
- WpfGeneratedKnownTypes.cs
- DbException.cs
- AsymmetricKeyExchangeFormatter.cs
- SystemIdentity.cs
- TraceContextEventArgs.cs
- ScriptDescriptor.cs
- OperationExecutionFault.cs
- ServiceModelExtensionCollectionElement.cs
- DataObjectFieldAttribute.cs
- OraclePermissionAttribute.cs
- WindowsIPAddress.cs
- CodePrimitiveExpression.cs
- AttributeCollection.cs
- ValueConversionAttribute.cs
- WebPartEditorOkVerb.cs
- OlePropertyStructs.cs
- CommandDevice.cs
- CompilerInfo.cs
- QuaternionKeyFrameCollection.cs
- SkewTransform.cs
- RichTextBoxAutomationPeer.cs
- ChtmlPageAdapter.cs
- JsonStringDataContract.cs
- VirtualizedItemPattern.cs
- MdImport.cs
- ToolStripSplitButton.cs
- Point3D.cs
- _HTTPDateParse.cs
- SiteMapDataSourceView.cs
- ISCIIEncoding.cs
- SiteOfOriginPart.cs
- PropertyMap.cs
- ExclusiveHandleList.cs
- AcceptorSessionSymmetricTransportSecurityProtocol.cs
- DependencyObjectPropertyDescriptor.cs
- ApplicationCommands.cs
- XslCompiledTransform.cs
- ParserHooks.cs
- TableHeaderCell.cs
- InkCanvasFeedbackAdorner.cs
- TreeNodeBindingCollection.cs
- SymbolTable.cs
- Size.cs
- SetterTriggerConditionValueConverter.cs
- DbParameterCollectionHelper.cs
- RadioButton.cs
- HealthMonitoringSectionHelper.cs
- KeyConverter.cs
- DataMemberListEditor.cs
- HttpResponse.cs
- UIAgentAsyncEndRequest.cs
- DictionaryKeyPropertyAttribute.cs
- DefinitionUpdate.cs
- Function.cs
- GridViewColumn.cs
- EntityRecordInfo.cs
- DataStorage.cs
- nulltextnavigator.cs
- BuildProviderCollection.cs
- ScriptMethodAttribute.cs
- XmlArrayAttribute.cs
- DesignerWebPartChrome.cs
- NavigationService.cs
- FileLogRecordHeader.cs
- TypeDependencyAttribute.cs
- PeerToPeerException.cs
- ProtocolsSection.cs
- FixedDSBuilder.cs
- UserMapPath.cs
- TabControl.cs
- CompiledQuery.cs
- SecurityKeyUsage.cs
- XhtmlConformanceSection.cs
- CmsUtils.cs
- SqlParameterCollection.cs
- RenderDataDrawingContext.cs
- SafeArrayRankMismatchException.cs
- xml.cs
- PointConverter.cs
- ChannelCredentials.cs
- ProfileSection.cs
- UpdatePanelTriggerCollection.cs
- InfoCardClaimCollection.cs
- RegistrationContext.cs
- __Error.cs
- WebFaultClientMessageInspector.cs
- HandleTable.cs
- MediaTimeline.cs
- MonthChangedEventArgs.cs