Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / 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: [....]/sites/Avalon/Specs/Text%20Formatting%20API.doc // // Created: 1-2-2004 [....] ([....]) // //----------------------------------------------------------------------- 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
- GridViewActionList.cs
- ApplicationSecurityManager.cs
- SingleAnimationUsingKeyFrames.cs
- Regex.cs
- basecomparevalidator.cs
- SqlClientWrapperSmiStreamChars.cs
- PerformanceCounterLib.cs
- SchemaTableOptionalColumn.cs
- TextElementCollectionHelper.cs
- Parser.cs
- SafeFileMapViewHandle.cs
- NamedElement.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- ReflectEventDescriptor.cs
- AnyReturnReader.cs
- __Filters.cs
- Viewport2DVisual3D.cs
- UnsafeNativeMethods.cs
- propertyentry.cs
- SQLSingleStorage.cs
- ConfigurationCollectionAttribute.cs
- CriticalHandle.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- PolicyImporterElement.cs
- ListBoxAutomationPeer.cs
- MediaScriptCommandRoutedEventArgs.cs
- HttpListenerPrefixCollection.cs
- ControlLocalizer.cs
- UidManager.cs
- ResourcesChangeInfo.cs
- Menu.cs
- HostingEnvironmentException.cs
- DefaultBindingPropertyAttribute.cs
- GeneralTransform3DGroup.cs
- DataGridHyperlinkColumn.cs
- UriSectionData.cs
- EventEntry.cs
- TableItemPatternIdentifiers.cs
- WorkflowDefinitionDispenser.cs
- RequestTimeoutManager.cs
- DataRowCollection.cs
- RawStylusInputCustomData.cs
- EndEvent.cs
- StylusPointPropertyId.cs
- CollectionBuilder.cs
- HttpRequestCacheValidator.cs
- TemplateBaseAction.cs
- XmlSerializationGeneratedCode.cs
- TextSpan.cs
- CustomErrorsSection.cs
- SchemaNames.cs
- MenuBindingsEditor.cs
- PageBreakRecord.cs
- AppDomainInstanceProvider.cs
- TableItemPattern.cs
- PolicyException.cs
- SafeProcessHandle.cs
- AdCreatedEventArgs.cs
- FaultHandlingFilter.cs
- KeyboardNavigation.cs
- ConnectionsZone.cs
- MsmqChannelListenerBase.cs
- FileDialog_Vista_Interop.cs
- Merger.cs
- AppearanceEditorPart.cs
- Bits.cs
- ExternalException.cs
- CaseStatementSlot.cs
- DelegateCompletionCallbackWrapper.cs
- SystemIdentity.cs
- Rect3DConverter.cs
- QilUnary.cs
- KnownTypesProvider.cs
- UInt16Converter.cs
- ItemCheckedEvent.cs
- BevelBitmapEffect.cs
- DBAsyncResult.cs
- OdbcConnectionStringbuilder.cs
- DesignerTransactionCloseEvent.cs
- UnicodeEncoding.cs
- GradientStop.cs
- DtcInterfaces.cs
- EntityConnectionStringBuilder.cs
- AffineTransform3D.cs
- Peer.cs
- SelectiveScrollingGrid.cs
- MemoryMappedViewStream.cs
- DSACryptoServiceProvider.cs
- TriggerAction.cs
- ResourceDescriptionAttribute.cs
- HtmlTableCell.cs
- TransformerTypeCollection.cs
- SizeConverter.cs
- Function.cs
- ResolvedKeyFrameEntry.cs
- SecurityRuntime.cs
- ServiceMemoryGates.cs
- _BufferOffsetSize.cs
- ViewBase.cs
- TimeStampChecker.cs