Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Media / textformatting / TextCollapsingProperties.cs / 1 / TextCollapsingProperties.cs
//------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation, 2004 // // File: TextCollapsingProperties.cs // // Contents: Definition of text collapsing properties and related types // // Spec: [....]/sites/Avalon/Specs/Text%20Formatting%20API.doc // // Created: 1-2-2004 [....] ([....]) // //----------------------------------------------------------------------- using System; using System.Collections; using System.Windows; namespace System.Windows.Media.TextFormatting { ////// Properties of text collapsing /// public abstract class TextCollapsingProperties { ////// TextFormatter to get width in which specified collapsible range constrained to /// public abstract double Width { get; } ////// TextFormatter to get text run used as collapsing symbol /// public abstract TextRun Symbol { get; } ////// TextFormatter to get style of collapsing /// public abstract TextCollapsingStyle Style { get; } } ////// Range of characters and its width measurement where collapsing has happened within a line /// public sealed class TextCollapsedRange { private int _cp; private int _length; private double _width; ////// Construct a collapsed range /// /// first character collapsed /// number of characters collapsed /// total width of collapsed characters internal TextCollapsedRange( int cp, int length, double width ) { _cp = cp; _length = length; _width = width; } ////// text source character index to the first character in range that is collapsed /// public int TextSourceCharacterIndex { get { return _cp; } } ////// number of characters collapsed /// public int Length { get { return _length; } } ////// total width of collapsed character range /// public double Width { get { return _width; } } } ////// Text collapsing style /// public enum TextCollapsingStyle { ////// Collapse trailing characters /// TrailingCharacter, ////// Collapse trailing words /// TrailingWord, } } // 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
- WebPartChrome.cs
- WindowCollection.cs
- ProfileServiceManager.cs
- ImageIndexConverter.cs
- DataServiceContext.cs
- EventBindingService.cs
- ImpersonateTokenRef.cs
- WindowPatternIdentifiers.cs
- SiteMapProvider.cs
- columnmapkeybuilder.cs
- exports.cs
- TimeStampChecker.cs
- DataGridViewDataConnection.cs
- WebPartConnectionCollection.cs
- RC2CryptoServiceProvider.cs
- MultipleViewPattern.cs
- DynamicActionMessageFilter.cs
- TimeSpanConverter.cs
- ManualWorkflowSchedulerService.cs
- FixedSOMFixedBlock.cs
- ValuePatternIdentifiers.cs
- XmlSchemaType.cs
- DataGridCaption.cs
- ViewManager.cs
- AdPostCacheSubstitution.cs
- DataServiceQueryOfT.cs
- DataObject.cs
- versioninfo.cs
- ToolboxItemSnapLineBehavior.cs
- SqlNotificationRequest.cs
- __ConsoleStream.cs
- TextControl.cs
- OptimizedTemplateContent.cs
- AssociatedControlConverter.cs
- ContractsBCL.cs
- OleDbTransaction.cs
- TraceAsyncResult.cs
- BamlLocalizabilityResolver.cs
- OutputCacheProfile.cs
- ContextInformation.cs
- EmptyImpersonationContext.cs
- ToolTipService.cs
- FlowDocumentPageViewerAutomationPeer.cs
- OleDbCommandBuilder.cs
- BufferManager.cs
- HeaderedContentControl.cs
- ProjectionPruner.cs
- CreateUserErrorEventArgs.cs
- DispatcherOperation.cs
- SoapInteropTypes.cs
- SqlBulkCopyColumnMapping.cs
- HandleScope.cs
- WebServiceAttribute.cs
- DataGridTextBox.cs
- EntityDataSourceSelectingEventArgs.cs
- WithStatement.cs
- DelegateOutArgument.cs
- FullTextState.cs
- OrderedDictionaryStateHelper.cs
- XmlSiteMapProvider.cs
- AmbiguousMatchException.cs
- SByte.cs
- SafeNativeMethods.cs
- __ComObject.cs
- StringStorage.cs
- Object.cs
- InstanceHandleConflictException.cs
- ProcessInputEventArgs.cs
- DataQuery.cs
- QueueProcessor.cs
- GlyphRun.cs
- XmlElement.cs
- HttpCapabilitiesEvaluator.cs
- KeyTimeConverter.cs
- SiteMapDesignerDataSourceView.cs
- SqlConnectionHelper.cs
- TerminatorSinks.cs
- XmlSchemaAny.cs
- BounceEase.cs
- DataIdProcessor.cs
- TemplateDefinition.cs
- infer.cs
- IERequestCache.cs
- ThreadExceptionDialog.cs
- XmlSchemaException.cs
- X509CertificateRecipientServiceCredential.cs
- MatrixKeyFrameCollection.cs
- ForeignKeyConstraint.cs
- Axis.cs
- FtpCachePolicyElement.cs
- EntityClientCacheKey.cs
- TreeWalkHelper.cs
- XAMLParseException.cs
- PartialTrustVisibleAssembliesSection.cs
- PackagePartCollection.cs
- InputQueue.cs
- BamlRecords.cs
- MimeMultiPart.cs
- UpdateProgress.cs
- Parameter.cs