Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Media / textformatting / TextTrailingWordEllipsis.cs / 1 / TextTrailingWordEllipsis.cs
//------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation, 2004 // // File: TextTrailingWordEllipsis.cs // // Contents: Implementation of text collapsing properties for whole line trailing word ellipsis // // 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 { ////// a collapsing properties to collapse whole line toward the end /// at word granularity and with ellipsis being the collapsing symbol /// public class TextTrailingWordEllipsis : TextCollapsingProperties { private double _width; private TextRun _ellipsis; private const string StringHorizontalEllipsis = "\x2026"; #region Constructor ////// Construct a text trailing word ellipsis collapsing properties /// /// width in which collapsing is constrained to /// text run properties of ellispis symbol public TextTrailingWordEllipsis( double width, TextRunProperties textRunProperties ) { _width = width; _ellipsis = new TextCharacters(StringHorizontalEllipsis, textRunProperties); } #endregion ////// TextFormatter to get width in which specified collapsible range constrained to /// public sealed override double Width { get { return _width; } } ////// TextFormatter to get text run used as collapsing symbol /// public sealed override TextRun Symbol { get { return _ellipsis; } } ////// TextFormatter to get style of collapsing /// public sealed override TextCollapsingStyle Style { get { return TextCollapsingStyle.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
- BufferedGraphicsManager.cs
- Polyline.cs
- SelectedDatesCollection.cs
- XamlFigureLengthSerializer.cs
- ActivationArguments.cs
- RuleInfoComparer.cs
- ProtocolsSection.cs
- DictionaryBase.cs
- PeerPresenceInfo.cs
- GeneralTransformGroup.cs
- RuleSetBrowserDialog.cs
- QueryTask.cs
- BuildManager.cs
- Math.cs
- ObfuscationAttribute.cs
- FixedSOMGroup.cs
- GCHandleCookieTable.cs
- PageCatalogPart.cs
- GroupQuery.cs
- FontCacheUtil.cs
- DesignParameter.cs
- ProtectedProviderSettings.cs
- Timeline.cs
- SecurityTokenSpecification.cs
- PolicyStatement.cs
- ChineseLunisolarCalendar.cs
- SoapObjectInfo.cs
- WebResourceAttribute.cs
- MergeFilterQuery.cs
- DataGridColumn.cs
- MdiWindowListItemConverter.cs
- XmlRawWriterWrapper.cs
- XmlEncodedRawTextWriter.cs
- ProviderUtil.cs
- TypedTableBaseExtensions.cs
- ThicknessConverter.cs
- ProcessModelInfo.cs
- GeometryModel3D.cs
- DPCustomTypeDescriptor.cs
- CachingParameterInspector.cs
- TableRowCollection.cs
- BindingExpression.cs
- RoleManagerModule.cs
- DataGridViewCellStyleEditor.cs
- NameValueFileSectionHandler.cs
- InternalResources.cs
- WebPartMenuStyle.cs
- RecommendedAsConfigurableAttribute.cs
- AppDomainUnloadedException.cs
- QilLiteral.cs
- ServiceMemoryGates.cs
- SmiContextFactory.cs
- BinaryKeyIdentifierClause.cs
- Inline.cs
- UnsafePeerToPeerMethods.cs
- TagMapInfo.cs
- DynamicValidatorEventArgs.cs
- BigInt.cs
- XmlSchemaNotation.cs
- DbDeleteCommandTree.cs
- EventLogPermissionEntryCollection.cs
- TreeView.cs
- ResourcesBuildProvider.cs
- CatalogPartCollection.cs
- Attributes.cs
- XmlCDATASection.cs
- EasingKeyFrames.cs
- Trace.cs
- HtmlInputControl.cs
- HtmlControl.cs
- KeyPressEvent.cs
- HttpValueCollection.cs
- CatalogZone.cs
- MethodAccessException.cs
- ParserStack.cs
- TextEditorTables.cs
- MenuRendererClassic.cs
- DSASignatureFormatter.cs
- StatusBarPanel.cs
- SelectionItemProviderWrapper.cs
- ExtentCqlBlock.cs
- InternalResources.cs
- ContentPresenter.cs
- WebPartTracker.cs
- WorkflowRuntimeServicesBehavior.cs
- TableLayoutRowStyleCollection.cs
- ObjectResult.cs
- StringWriter.cs
- EmptyReadOnlyDictionaryInternal.cs
- BufferedGraphics.cs
- BrushValueSerializer.cs
- ItemContainerGenerator.cs
- SequenceDesigner.cs
- ObservableCollection.cs
- SqlMetaData.cs
- versioninfo.cs
- EmptyCollection.cs
- ListSourceHelper.cs
- RegistryConfigurationProvider.cs
- ImageConverter.cs