Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- ComboBox.cs
- MemberAccessException.cs
- COM2EnumConverter.cs
- sqlpipe.cs
- EnumType.cs
- HttpsHostedTransportConfiguration.cs
- StrongNameKeyPair.cs
- MetafileHeader.cs
- PropertyCollection.cs
- AlignmentXValidation.cs
- CallbackHandler.cs
- BorderGapMaskConverter.cs
- PostBackOptions.cs
- sqlstateclientmanager.cs
- HtmlCommandAdapter.cs
- HtmlHead.cs
- XmlUnspecifiedAttribute.cs
- RemotingServices.cs
- StyleSheetRefUrlEditor.cs
- DesignerOptionService.cs
- FieldNameLookup.cs
- OutputChannel.cs
- TableCell.cs
- InternalSafeNativeMethods.cs
- CompositeFontFamily.cs
- XmlAutoDetectWriter.cs
- ToolStripDropTargetManager.cs
- Selector.cs
- ColumnHeaderConverter.cs
- MenuItemStyle.cs
- AccessorTable.cs
- bindurihelper.cs
- BitmapSourceSafeMILHandle.cs
- EncryptedPackageFilter.cs
- MatchingStyle.cs
- ReferenceService.cs
- TypeLibConverter.cs
- ExpandCollapsePattern.cs
- DynamicRenderer.cs
- PartitionResolver.cs
- XPathBinder.cs
- PackWebRequest.cs
- CodeRegionDirective.cs
- DataGridViewColumnCollectionEditor.cs
- DebugInfoExpression.cs
- DiscriminatorMap.cs
- PresentationTraceSources.cs
- InputMethodStateTypeInfo.cs
- RectAnimationUsingKeyFrames.cs
- DisableDpiAwarenessAttribute.cs
- HtmlLiteralTextAdapter.cs
- OutOfProcStateClientManager.cs
- XmlDictionaryReader.cs
- dtdvalidator.cs
- QilCloneVisitor.cs
- AdapterUtil.cs
- BaseProcessor.cs
- safelink.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- HealthMonitoringSectionHelper.cs
- OptimalBreakSession.cs
- DuplicateWaitObjectException.cs
- DataServiceRequestArgs.cs
- WeakReference.cs
- ArgumentException.cs
- ImplicitInputBrush.cs
- HttpHandler.cs
- DataMisalignedException.cs
- MouseWheelEventArgs.cs
- CompilationLock.cs
- SqlBuilder.cs
- ObjectHelper.cs
- MatrixCamera.cs
- SqlClientWrapperSmiStreamChars.cs
- XslException.cs
- Activity.cs
- SerializationInfo.cs
- WebMessageFormatHelper.cs
- AuthorizationSection.cs
- PackageDigitalSignatureManager.cs
- ResourceAssociationTypeEnd.cs
- BitmapEffectInput.cs
- ClientSection.cs
- OutputCacheProfileCollection.cs
- FreeFormDesigner.cs
- TrackingQuery.cs
- Button.cs
- DiagnosticTraceSource.cs
- PageAsyncTaskManager.cs
- TableDetailsRow.cs
- tibetanshape.cs
- UnmanagedBitmapWrapper.cs
- ArrayExtension.cs
- ClientBuildManager.cs
- ExpressionsCollectionEditor.cs
- GridViewRowCollection.cs
- IItemContainerGenerator.cs
- DeleteCardRequest.cs
- Wow64ConfigurationLoader.cs
- Int64KeyFrameCollection.cs