Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / textformatting / TextCollapsingProperties.cs / 1305600 / 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
- Splitter.cs
- XmlConvert.cs
- securitycriticaldata.cs
- DataGridViewComboBoxCell.cs
- FastEncoder.cs
- Persist.cs
- CodeMemberMethod.cs
- HttpWebResponse.cs
- DiagnosticSection.cs
- FilteredAttributeCollection.cs
- RequestCacheManager.cs
- BlockingCollection.cs
- RSAPKCS1SignatureFormatter.cs
- StorageInfo.cs
- IgnoreFileBuildProvider.cs
- WebPartVerbCollection.cs
- Track.cs
- Input.cs
- XsltException.cs
- ThicknessAnimationBase.cs
- DataGridViewSelectedRowCollection.cs
- DeflateEmulationStream.cs
- MaskedTextBox.cs
- AssemblyEvidenceFactory.cs
- AuthenticationService.cs
- ChameleonKey.cs
- CodeMemberField.cs
- DbMetaDataCollectionNames.cs
- FlowPosition.cs
- XMLDiffLoader.cs
- XmlAttribute.cs
- SystemTcpConnection.cs
- ObjectMemberMapping.cs
- SerializationEventsCache.cs
- MarkupWriter.cs
- ExtenderHelpers.cs
- FrameDimension.cs
- QueryOpcode.cs
- BaseCollection.cs
- ValidationError.cs
- DescendantQuery.cs
- CharacterBufferReference.cs
- ColumnTypeConverter.cs
- TableLayoutRowStyleCollection.cs
- Msec.cs
- PermissionSet.cs
- XmlWriter.cs
- MatrixKeyFrameCollection.cs
- TcpHostedTransportConfiguration.cs
- KeyValueSerializer.cs
- TextWriter.cs
- WebUtil.cs
- ProviderSettings.cs
- CodeAttributeArgumentCollection.cs
- ThicknessAnimationUsingKeyFrames.cs
- SqlDataSourceQueryEditor.cs
- ArraySegment.cs
- WindowsEditBox.cs
- ActivityTrace.cs
- Logging.cs
- SoapElementAttribute.cs
- VisualTreeHelper.cs
- DiscreteKeyFrames.cs
- ObjectDataSourceFilteringEventArgs.cs
- Wizard.cs
- DataGridViewElement.cs
- RuntimeResourceSet.cs
- ObjectNavigationPropertyMapping.cs
- PropertyNames.cs
- Group.cs
- basenumberconverter.cs
- ParserStreamGeometryContext.cs
- SqlInternalConnectionSmi.cs
- ToolStripItemCollection.cs
- Size.cs
- RelatedCurrencyManager.cs
- Expression.DebuggerProxy.cs
- TabletCollection.cs
- DoubleAnimationBase.cs
- NativeCppClassAttribute.cs
- BidOverLoads.cs
- TokenizerHelper.cs
- Blend.cs
- ArgumentOutOfRangeException.cs
- QfeChecker.cs
- CornerRadius.cs
- ExpressionNormalizer.cs
- XmlSerializerAssemblyAttribute.cs
- Exceptions.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- LocationFactory.cs
- SafeHandle.cs
- SchemaElementDecl.cs
- OrderedEnumerableRowCollection.cs
- IndentTextWriter.cs
- DetailsViewUpdatedEventArgs.cs
- SmiEventSink_DeferedProcessing.cs
- CompleteWizardStep.cs
- FieldCollectionEditor.cs
- NullToBooleanConverter.cs