Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / 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: http://team/sites/Avalon/Specs/Text%20Formatting%20API.doc // // Created: 1-2-2004 Worachai Chaoweeraprasit (wchao) // //----------------------------------------------------------------------- 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. //------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation, 2004 // // File: TextCollapsingProperties.cs // // Contents: Definition of text collapsing properties and related types // // Spec: http://team/sites/Avalon/Specs/Text%20Formatting%20API.doc // // Created: 1-2-2004 Worachai Chaoweeraprasit (wchao) // //----------------------------------------------------------------------- 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
- CommandHelper.cs
- BookmarkUndoUnit.cs
- ImageMapEventArgs.cs
- TypeProvider.cs
- ErrorView.xaml.cs
- ContentControl.cs
- TextSearch.cs
- CallbackValidator.cs
- FormViewCommandEventArgs.cs
- FixedSOMSemanticBox.cs
- SafeMILHandle.cs
- DesignerActionList.cs
- AppDomainFactory.cs
- TracingConnectionListener.cs
- DurableMessageDispatchInspector.cs
- QueryStringHandler.cs
- codemethodreferenceexpression.cs
- Pen.cs
- CompositeCollection.cs
- PointLight.cs
- Exceptions.cs
- OleDbMetaDataFactory.cs
- XmlSchemaDatatype.cs
- RuntimeCompatibilityAttribute.cs
- ArrayConverter.cs
- RemoteWebConfigurationHostServer.cs
- SimplePropertyEntry.cs
- CompositeFontFamily.cs
- ACL.cs
- FontFamily.cs
- FrameDimension.cs
- RemoteX509AsymmetricSecurityKey.cs
- CollectionAdapters.cs
- PersonalizableTypeEntry.cs
- ClockController.cs
- CachingParameterInspector.cs
- ComponentCommands.cs
- AnimationTimeline.cs
- invalidudtexception.cs
- EncodingNLS.cs
- __ComObject.cs
- processwaithandle.cs
- XmlSchemaSimpleContentExtension.cs
- ProtocolReflector.cs
- RemotingSurrogateSelector.cs
- Dynamic.cs
- AutoResetEvent.cs
- HTTPNotFoundHandler.cs
- DataTableClearEvent.cs
- AlphabeticalEnumConverter.cs
- SecurityUniqueId.cs
- ArraySet.cs
- SoapMessage.cs
- CheckBoxPopupAdapter.cs
- Floater.cs
- RegexGroupCollection.cs
- TextServicesManager.cs
- Timer.cs
- TextOptionsInternal.cs
- SourceElementsCollection.cs
- DetailsViewModeEventArgs.cs
- PaperSource.cs
- PriorityQueue.cs
- LogicalCallContext.cs
- EntityObject.cs
- DoubleAnimationUsingPath.cs
- MeasureData.cs
- RequestTimeoutManager.cs
- TextModifier.cs
- InternalEnumValidatorAttribute.cs
- FixedPageAutomationPeer.cs
- EventListenerClientSide.cs
- GlyphShapingProperties.cs
- StaticResourceExtension.cs
- _NetworkingPerfCounters.cs
- StatusStrip.cs
- SchemaObjectWriter.cs
- PropertyConverter.cs
- ColumnBinding.cs
- XmlSerializerVersionAttribute.cs
- RijndaelManaged.cs
- CodeMethodInvokeExpression.cs
- FrameSecurityDescriptor.cs
- SettingsPropertyCollection.cs
- UIPermission.cs
- TypeForwardedToAttribute.cs
- SerializableAttribute.cs
- TypeSystem.cs
- LogicalTreeHelper.cs
- ProtocolsConfigurationHandler.cs
- FastEncoder.cs
- LinearKeyFrames.cs
- DataGridViewCellStateChangedEventArgs.cs
- TextRenderer.cs
- ConfigurationProperty.cs
- CommandConverter.cs
- _SSPIWrapper.cs
- RightsManagementUser.cs
- MessageDescription.cs
- SystemIPGlobalProperties.cs