Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Core / CSharp / 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: http://team/sites/Avalon/Specs/Text%20Formatting%20API.doc // // Created: 1-2-2004 Worachai Chaoweeraprasit (wchao) // //----------------------------------------------------------------------- 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. //------------------------------------------------------------------------ // // 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: http://team/sites/Avalon/Specs/Text%20Formatting%20API.doc // // Created: 1-2-2004 Worachai Chaoweeraprasit (wchao) // //----------------------------------------------------------------------- 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
- glyphs.cs
- Win32.cs
- EntityDataSourceQueryBuilder.cs
- MyContact.cs
- Image.cs
- MsmqInputChannel.cs
- ControlUtil.cs
- XmlTextWriter.cs
- RequestResizeEvent.cs
- TextRunProperties.cs
- DatagridviewDisplayedBandsData.cs
- RuntimeWrappedException.cs
- MouseButtonEventArgs.cs
- OdbcFactory.cs
- XmlSchemaCollection.cs
- TransformedBitmap.cs
- HtmlTitle.cs
- XPathNavigatorReader.cs
- UInt64Converter.cs
- ItemsChangedEventArgs.cs
- Menu.cs
- NumberEdit.cs
- UnsettableComboBox.cs
- ItemList.cs
- ApplicationContext.cs
- DynamicRouteExpression.cs
- WebPartHeaderCloseVerb.cs
- StretchValidation.cs
- SynchronizedInputAdaptor.cs
- TabletCollection.cs
- ImpersonateTokenRef.cs
- HttpServerUtilityBase.cs
- XmlSchemaProviderAttribute.cs
- PageWrapper.cs
- DataGridViewRowPrePaintEventArgs.cs
- SHA1Managed.cs
- FixedSOMGroup.cs
- ServiceMetadataContractBehavior.cs
- LoopExpression.cs
- WinInet.cs
- TagElement.cs
- ColorKeyFrameCollection.cs
- GotoExpression.cs
- SplineKeyFrames.cs
- OneOfElement.cs
- ChooseAction.cs
- DataBoundLiteralControl.cs
- IODescriptionAttribute.cs
- ObjectDataSourceDesigner.cs
- DocumentViewerBase.cs
- StdValidatorsAndConverters.cs
- CodeDirectiveCollection.cs
- CompositeScriptReferenceEventArgs.cs
- IUnknownConstantAttribute.cs
- HtmlSelect.cs
- EventLogException.cs
- EntityWrapperFactory.cs
- XmlAnyAttributeAttribute.cs
- HtmlContainerControl.cs
- OdbcConnectionPoolProviderInfo.cs
- NullableLongMinMaxAggregationOperator.cs
- AttachmentCollection.cs
- XmlWriterSettings.cs
- ReaderWriterLockSlim.cs
- TableColumn.cs
- CachedPathData.cs
- Message.cs
- SmiMetaData.cs
- WhitespaceRuleLookup.cs
- DataGridHelper.cs
- CubicEase.cs
- DataGridViewMethods.cs
- TextEditorTyping.cs
- AssemblyGen.cs
- TreeNodeStyle.cs
- ComIntegrationManifestGenerator.cs
- Literal.cs
- CodeDirectoryCompiler.cs
- EdmRelationshipRoleAttribute.cs
- CopyCodeAction.cs
- UseLicense.cs
- Metadata.cs
- StructuredTypeEmitter.cs
- Page.cs
- FamilyTypeface.cs
- DataSourceSerializationException.cs
- ParseHttpDate.cs
- NativeMethods.cs
- BufferAllocator.cs
- RotateTransform3D.cs
- EditableTreeList.cs
- ImageSource.cs
- InstanceNotFoundException.cs
- DBCSCodePageEncoding.cs
- HijriCalendar.cs
- TextRunCache.cs
- ClassValidator.cs
- ImageMap.cs
- BitmapScalingModeValidation.cs
- ToggleButton.cs