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
- RawKeyboardInputReport.cs
- XPathExpr.cs
- SymbolMethod.cs
- GridItemCollection.cs
- XmlDataSourceView.cs
- Italic.cs
- HttpProfileGroupBase.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- SubMenuStyleCollection.cs
- EnumerableRowCollection.cs
- ParseChildrenAsPropertiesAttribute.cs
- TreeNodeMouseHoverEvent.cs
- EntryWrittenEventArgs.cs
- XamlInt32CollectionSerializer.cs
- ControlAdapter.cs
- ReflectTypeDescriptionProvider.cs
- TemplateBuilder.cs
- AliasedExpr.cs
- FixedSOMPageConstructor.cs
- Win32Native.cs
- ReadOnlyState.cs
- SortExpressionBuilder.cs
- InternalsVisibleToAttribute.cs
- ContextTokenTypeConverter.cs
- CodeSubDirectoriesCollection.cs
- BackStopAuthenticationModule.cs
- RequestCachingSection.cs
- GridViewAutomationPeer.cs
- Binding.cs
- XPathNavigatorReader.cs
- ColumnHeader.cs
- OpenTypeLayoutCache.cs
- CqlLexerHelpers.cs
- pingexception.cs
- Overlapped.cs
- SqlMultiplexer.cs
- GridViewDeleteEventArgs.cs
- LoadWorkflowByKeyAsyncResult.cs
- CompositionTarget.cs
- SpecialNameAttribute.cs
- OrderByQueryOptionExpression.cs
- HyperLinkField.cs
- XmlBinaryReaderSession.cs
- FunctionCommandText.cs
- Point3D.cs
- smtppermission.cs
- TextAutomationPeer.cs
- WaitHandle.cs
- UserControl.cs
- ObjectQuery_EntitySqlExtensions.cs
- contentDescriptor.cs
- DBPropSet.cs
- SliderAutomationPeer.cs
- TrackingMemoryStream.cs
- TextTreeRootNode.cs
- IsolatedStorageFileStream.cs
- ExternalException.cs
- TemplateBindingExpressionConverter.cs
- HttpServerVarsCollection.cs
- TextSegment.cs
- InputMethodStateTypeInfo.cs
- Roles.cs
- TextEditorThreadLocalStore.cs
- ButtonStandardAdapter.cs
- WebRequestModuleElementCollection.cs
- TextPointer.cs
- MatrixTransform.cs
- StatusBar.cs
- TextEditorSpelling.cs
- ConfigurationElement.cs
- _ProxyChain.cs
- RadialGradientBrush.cs
- DecimalFormatter.cs
- XmlSchemaAttributeGroupRef.cs
- RbTree.cs
- Context.cs
- WindowsGraphics.cs
- GuidConverter.cs
- RotateTransform3D.cs
- ExtendedPropertyCollection.cs
- DesignRelation.cs
- SafeHGlobalHandleCritical.cs
- ColorMatrix.cs
- NullPackagingPolicy.cs
- ProviderSettingsCollection.cs
- QueryStringParameter.cs
- precedingsibling.cs
- XmlQueryCardinality.cs
- DetailsViewUpdateEventArgs.cs
- SeekStoryboard.cs
- XmlSchemaAll.cs
- QueryOperationResponseOfT.cs
- Compress.cs
- ProcessHost.cs
- ApplicationFileCodeDomTreeGenerator.cs
- TreeViewImageKeyConverter.cs
- RemoveStoryboard.cs
- FastEncoder.cs
- BypassElementCollection.cs
- HttpException.cs