Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- DesignerTextBoxAdapter.cs
- tabpagecollectioneditor.cs
- TransformerConfigurationWizardBase.cs
- RewritingSimplifier.cs
- MessageEnumerator.cs
- XmlAnyAttributeAttribute.cs
- SeverityFilter.cs
- IisTraceListener.cs
- ValidatedControlConverter.cs
- GridPatternIdentifiers.cs
- MimeImporter.cs
- XmlWrappingWriter.cs
- ConnectionPool.cs
- ColumnReorderedEventArgs.cs
- Int16Storage.cs
- ValidationEventArgs.cs
- CounterSample.cs
- HttpListenerContext.cs
- ServiceOperation.cs
- TwoPhaseCommit.cs
- TextRangeEditTables.cs
- RestHandler.cs
- NodeInfo.cs
- RNGCryptoServiceProvider.cs
- XmlnsCache.cs
- SectionUpdates.cs
- ThreadPool.cs
- CatchDesigner.xaml.cs
- OdbcConnectionHandle.cs
- TableSectionStyle.cs
- AlphabeticalEnumConverter.cs
- srgsitem.cs
- XPathChildIterator.cs
- Baml2006ReaderContext.cs
- PolyBezierSegment.cs
- NullableIntAverageAggregationOperator.cs
- NonBatchDirectoryCompiler.cs
- SmtpMail.cs
- SpanIndex.cs
- ErrorInfoXmlDocument.cs
- DropShadowBitmapEffect.cs
- ReliableInputConnection.cs
- InstanceDataCollection.cs
- X509Certificate.cs
- FontUnit.cs
- DeclarativeCatalogPartDesigner.cs
- FileEnumerator.cs
- SqlInternalConnectionSmi.cs
- PropertyIDSet.cs
- AssociationType.cs
- MultiAsyncResult.cs
- SessionSwitchEventArgs.cs
- FormViewInsertEventArgs.cs
- ConfigurationProperty.cs
- ThousandthOfEmRealPoints.cs
- SizeAnimationUsingKeyFrames.cs
- NodeCounter.cs
- DbProviderFactoriesConfigurationHandler.cs
- PriorityQueue.cs
- ValidateNames.cs
- ListViewDesigner.cs
- ViewPort3D.cs
- storepermissionattribute.cs
- SystemIcmpV6Statistics.cs
- SafeViewOfFileHandle.cs
- TextAnchor.cs
- DesignerProperties.cs
- columnmapfactory.cs
- SafeFileMappingHandle.cs
- graph.cs
- COMException.cs
- WindowsIPAddress.cs
- TdsParserStaticMethods.cs
- ResourcePermissionBaseEntry.cs
- XsltSettings.cs
- GeneralTransform3DCollection.cs
- BufferedReadStream.cs
- ZeroOpNode.cs
- XmlDocumentSerializer.cs
- RegionIterator.cs
- SqlDataSourceWizardForm.cs
- FamilyTypefaceCollection.cs
- autovalidator.cs
- AppDomainGrammarProxy.cs
- LineGeometry.cs
- WsatServiceAddress.cs
- FixUpCollection.cs
- OneOfTypeConst.cs
- LineSegment.cs
- OverflowException.cs
- GridEntry.cs
- SystemIPv6InterfaceProperties.cs
- VisualTarget.cs
- HttpProxyCredentialType.cs
- TypographyProperties.cs
- PropertyMap.cs
- ParameterInfo.cs
- EventLogConfiguration.cs
- XmlSerializationWriter.cs
- SchemaMerger.cs