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
- ValuePattern.cs
- httpstaticobjectscollection.cs
- TextServicesLoader.cs
- CustomSignedXml.cs
- OleCmdHelper.cs
- ExtensionSimplifierMarkupObject.cs
- Listbox.cs
- QueuePathEditor.cs
- ListItemParagraph.cs
- SyndicationCategory.cs
- SelectionItemProviderWrapper.cs
- SHA1Managed.cs
- StreamInfo.cs
- ConstrainedDataObject.cs
- UshortList2.cs
- CodeCatchClause.cs
- WriterOutput.cs
- ExecutedRoutedEventArgs.cs
- SmtpReplyReaderFactory.cs
- AbstractDataSvcMapFileLoader.cs
- PrimaryKeyTypeConverter.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- Bits.cs
- XmlSerializerAssemblyAttribute.cs
- ArrayConverter.cs
- DocumentReference.cs
- DisplayMemberTemplateSelector.cs
- listitem.cs
- Misc.cs
- FixedSOMSemanticBox.cs
- Span.cs
- ContentPlaceHolder.cs
- StylusPointPropertyInfo.cs
- CompModSwitches.cs
- TextEditorSpelling.cs
- DataBoundControlAdapter.cs
- Base64Stream.cs
- ConversionContext.cs
- DiffuseMaterial.cs
- SystemKeyConverter.cs
- XmlCountingReader.cs
- BaseTemplateCodeDomTreeGenerator.cs
- HTTPNotFoundHandler.cs
- ISO2022Encoding.cs
- URLAttribute.cs
- OleTxTransactionInfo.cs
- UTF7Encoding.cs
- HttpResponse.cs
- HMACSHA384.cs
- Converter.cs
- NativeCompoundFileAPIs.cs
- ResolveMatchesApril2005.cs
- SequenceDesigner.cs
- Query.cs
- TrackingLocation.cs
- DiscoveryViaBehavior.cs
- DiscoveryOperationContextExtension.cs
- DataObjectFieldAttribute.cs
- BookmarkScopeManager.cs
- HtmlInputRadioButton.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- Wildcard.cs
- RemotingConfiguration.cs
- PermissionSetTriple.cs
- DataGridItemEventArgs.cs
- BaseTemplateParser.cs
- HttpConfigurationContext.cs
- ListBox.cs
- ToolStripPanelRenderEventArgs.cs
- ConfigurationSectionCollection.cs
- DispatcherTimer.cs
- TakeOrSkipQueryOperator.cs
- ContainerControl.cs
- ItemTypeToolStripMenuItem.cs
- ParseChildrenAsPropertiesAttribute.cs
- ScriptComponentDescriptor.cs
- TreeNodeSelectionProcessor.cs
- ConnectionPoint.cs
- WorkflowViewElement.cs
- LogReserveAndAppendState.cs
- XmlEnumAttribute.cs
- BamlVersionHeader.cs
- IsolationInterop.cs
- ResetableIterator.cs
- KeyPressEvent.cs
- TraceUtils.cs
- XamlReaderHelper.cs
- PrivateFontCollection.cs
- SystemInformation.cs
- DbConnectionInternal.cs
- FileSystemInfo.cs
- EmbossBitmapEffect.cs
- UndoManager.cs
- BooleanToVisibilityConverter.cs
- DispatcherSynchronizationContext.cs
- OpenTypeLayoutCache.cs
- SynchronizedInputPattern.cs
- InputLanguageEventArgs.cs
- ComPlusAuthorization.cs
- MetadataElement.cs