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
- DataBindingHandlerAttribute.cs
- ConnectionManagementElementCollection.cs
- SolidColorBrush.cs
- DataBindingsDialog.cs
- WriteLineDesigner.xaml.cs
- Control.cs
- ItemList.cs
- ClientRolePrincipal.cs
- Viewport3DVisual.cs
- ControlSerializer.cs
- DBNull.cs
- securitycriticaldata.cs
- FormsAuthenticationTicket.cs
- CmsInterop.cs
- FreeFormDragDropManager.cs
- RuntimeEnvironment.cs
- FilterQueryOptionExpression.cs
- DataRow.cs
- XamlDesignerSerializationManager.cs
- SByte.cs
- Number.cs
- ItemCollection.cs
- PriorityRange.cs
- MenuCommands.cs
- ColorContext.cs
- Int32EqualityComparer.cs
- Unit.cs
- _FtpControlStream.cs
- QilInvokeEarlyBound.cs
- RenderData.cs
- StorageEntityTypeMapping.cs
- ViewCellRelation.cs
- JsonEncodingStreamWrapper.cs
- URI.cs
- SectionRecord.cs
- ModifierKeysValueSerializer.cs
- GridViewUpdatedEventArgs.cs
- StrokeDescriptor.cs
- FileUtil.cs
- PermissionSetTriple.cs
- ContextProperty.cs
- WebZone.cs
- COSERVERINFO.cs
- CodeGen.cs
- DispatchChannelSink.cs
- Nullable.cs
- ToolboxItemFilterAttribute.cs
- PrintDialog.cs
- IOException.cs
- FileUtil.cs
- DateTimeConverter.cs
- Tokenizer.cs
- MouseEventArgs.cs
- Authorization.cs
- TemplatedWizardStep.cs
- TypeConverterAttribute.cs
- CryptoProvider.cs
- BinaryConverter.cs
- Stack.cs
- CheckoutException.cs
- FixedElement.cs
- TreePrinter.cs
- StructuralCache.cs
- SplitterCancelEvent.cs
- MemberProjectionIndex.cs
- XmlEventCache.cs
- Msec.cs
- WrappingXamlSchemaContext.cs
- RectIndependentAnimationStorage.cs
- PEFileReader.cs
- SlipBehavior.cs
- GridProviderWrapper.cs
- HtmlValidationSummaryAdapter.cs
- METAHEADER.cs
- UriTemplateClientFormatter.cs
- TreePrinter.cs
- SSmlParser.cs
- LambdaCompiler.Binary.cs
- XmlRawWriter.cs
- HttpHandlersSection.cs
- MulticastDelegate.cs
- Assembly.cs
- HtmlInputRadioButton.cs
- LifetimeServices.cs
- PenContexts.cs
- TypeLibConverter.cs
- ProfileParameter.cs
- PropertyStore.cs
- List.cs
- QueryContext.cs
- SqlUdtInfo.cs
- TimeZone.cs
- _SafeNetHandles.cs
- WebSysDescriptionAttribute.cs
- SpeechDetectedEventArgs.cs
- PeerPresenceInfo.cs
- LayoutTableCell.cs
- _TLSstream.cs
- ModelUIElement3D.cs
- SmtpAuthenticationManager.cs