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
- CompilerHelpers.cs
- XmlAttributes.cs
- NonBatchDirectoryCompiler.cs
- PointConverter.cs
- DataGridViewSelectedColumnCollection.cs
- GridViewDeletedEventArgs.cs
- StackBuilderSink.cs
- NetSectionGroup.cs
- NameValueCollection.cs
- WebPartTransformer.cs
- FileLoadException.cs
- SystemIPGlobalStatistics.cs
- ContextMenu.cs
- ClientOperation.cs
- PenThread.cs
- XPathParser.cs
- SlotInfo.cs
- TreeSet.cs
- Char.cs
- EditBehavior.cs
- XmlStreamNodeWriter.cs
- PassportPrincipal.cs
- WebEvents.cs
- CodeTypeDelegate.cs
- TypeViewSchema.cs
- DataBindingHandlerAttribute.cs
- ExpressionContext.cs
- WebSysDisplayNameAttribute.cs
- WebConfigurationFileMap.cs
- XamlNamespaceHelper.cs
- FixedPageAutomationPeer.cs
- unsafeIndexingFilterStream.cs
- DataGridViewCellFormattingEventArgs.cs
- ResourceSetExpression.cs
- TreeNode.cs
- EventProperty.cs
- WriteTimeStream.cs
- GridViewUpdateEventArgs.cs
- PeerUnsafeNativeMethods.cs
- CalloutQueueItem.cs
- ExpanderAutomationPeer.cs
- AlignmentYValidation.cs
- AbsoluteQuery.cs
- future.cs
- TextEditorMouse.cs
- FormatConvertedBitmap.cs
- ProfessionalColors.cs
- StreamAsIStream.cs
- CounterSampleCalculator.cs
- FunctionNode.cs
- WebPartEventArgs.cs
- XmlWriter.cs
- RepeaterItem.cs
- Canvas.cs
- LineProperties.cs
- base64Transforms.cs
- MetricEntry.cs
- AssemblyAssociatedContentFileAttribute.cs
- NonParentingControl.cs
- ScriptIgnoreAttribute.cs
- SemaphoreSecurity.cs
- StrongNameUtility.cs
- COM2PictureConverter.cs
- ActivityDesigner.cs
- PerspectiveCamera.cs
- VideoDrawing.cs
- MenuItem.cs
- PropertyFilter.cs
- DataSourceControl.cs
- coordinatorfactory.cs
- AsyncResult.cs
- SymbolPair.cs
- isolationinterop.cs
- SafeNativeMethodsOther.cs
- DataRowView.cs
- LocatorGroup.cs
- FactoryRecord.cs
- SQLBytesStorage.cs
- RSAOAEPKeyExchangeDeformatter.cs
- TypeLibConverter.cs
- DesignerTextWriter.cs
- ObjectDataSourceView.cs
- KeyedPriorityQueue.cs
- COM2PictureConverter.cs
- IOThreadTimer.cs
- DatePickerDateValidationErrorEventArgs.cs
- ItemsPanelTemplate.cs
- LinqDataSourceContextEventArgs.cs
- DefaultParameterValueAttribute.cs
- ObjectItemLoadingSessionData.cs
- InkCanvasInnerCanvas.cs
- StatusBarPanel.cs
- HyperLinkField.cs
- DataGridViewTopRowAccessibleObject.cs
- FixedTextContainer.cs
- PixelFormats.cs
- CodeAssignStatement.cs
- UnsafeMethods.cs
- MemoryPressure.cs
- SpeechSeg.cs