Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Media / textformatting / TextTrailingCharacterEllipsis.cs / 1 / TextTrailingCharacterEllipsis.cs
//------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation, 2004 // // File: TextTrailingCharacterEllipsis.cs // // Contents: Implementation of text collapsing properties for whole line trailing character 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 character granularity and with ellipsis being the collapsing symbol /// public class TextTrailingCharacterEllipsis : TextCollapsingProperties { private double _width; private TextRun _ellipsis; private const string StringHorizontalEllipsis = "\x2026"; #region Constructor ////// Construct a text trailing character ellipsis collapsing properties /// /// width in which collapsing is constrained to /// text run properties of ellispis symbol public TextTrailingCharacterEllipsis( 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.TrailingCharacter; } } } } // 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
- IResourceProvider.cs
- Page.cs
- SkewTransform.cs
- ScrollChrome.cs
- WmlPhoneCallAdapter.cs
- TemplatePartAttribute.cs
- EditorPart.cs
- DependencyPropertyChangedEventArgs.cs
- DrawItemEvent.cs
- DSGeneratorProblem.cs
- Rijndael.cs
- SafeLibraryHandle.cs
- UrlParameterWriter.cs
- HtmlValidationSummaryAdapter.cs
- TdsRecordBufferSetter.cs
- figurelengthconverter.cs
- ResourceReferenceKeyNotFoundException.cs
- TreeViewEvent.cs
- ChangePassword.cs
- Deserializer.cs
- SelectedGridItemChangedEvent.cs
- SqlDependencyUtils.cs
- ByeMessage11.cs
- XmlSchemaSimpleContentExtension.cs
- DataGridViewCellLinkedList.cs
- MetadataPropertyCollection.cs
- ActivationWorker.cs
- IndentedWriter.cs
- WindowsBrush.cs
- AspNetHostingPermission.cs
- RotateTransform3D.cs
- ParentUndoUnit.cs
- FixedTextSelectionProcessor.cs
- Rights.cs
- Parameter.cs
- ParallelTimeline.cs
- BeginEvent.cs
- DataGridViewCellStateChangedEventArgs.cs
- TTSEvent.cs
- ByteAnimation.cs
- PingOptions.cs
- RadioButtonList.cs
- XmlEncodedRawTextWriter.cs
- FormView.cs
- ChameleonKey.cs
- MultiDataTrigger.cs
- BaseProcessor.cs
- SchemaManager.cs
- Rijndael.cs
- ExtensionFile.cs
- Stopwatch.cs
- Socket.cs
- NullReferenceException.cs
- Trace.cs
- BCLDebug.cs
- DefaultHttpHandler.cs
- AutomationProperties.cs
- Utility.cs
- ListViewItemSelectionChangedEvent.cs
- ServiceHttpModule.cs
- CompilerCollection.cs
- QilParameter.cs
- ReadingWritingEntityEventArgs.cs
- SettingsPropertyValue.cs
- PnrpPermission.cs
- LoadRetryHandler.cs
- DiagnosticTraceRecords.cs
- ProcessStartInfo.cs
- RowsCopiedEventArgs.cs
- SystemIPGlobalProperties.cs
- ZoneIdentityPermission.cs
- SqlDataSourceStatusEventArgs.cs
- TextTreeRootTextBlock.cs
- TreeViewHitTestInfo.cs
- RegistryPermission.cs
- HttpCapabilitiesBase.cs
- Scripts.cs
- Rect.cs
- XomlCompiler.cs
- ExpressionPrinter.cs
- ModelPerspective.cs
- TaiwanLunisolarCalendar.cs
- listitem.cs
- PointAnimationUsingPath.cs
- SafeWaitHandle.cs
- SqlIdentifier.cs
- Popup.cs
- ConnectionStringsExpressionEditor.cs
- NumberFunctions.cs
- SqlFunctions.cs
- BooleanConverter.cs
- WindowsStatusBar.cs
- Wizard.cs
- DynamicDocumentPaginator.cs
- TraceData.cs
- WhitespaceRule.cs
- OleStrCAMarshaler.cs
- KeyPullup.cs
- ICspAsymmetricAlgorithm.cs
- DataGridViewControlCollection.cs