Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / textformatting / TextTrailingCharacterEllipsis.cs / 1305600 / 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
- XmlWriterDelegator.cs
- CommonObjectSecurity.cs
- IncrementalReadDecoders.cs
- GACMembershipCondition.cs
- DatatypeImplementation.cs
- PackageRelationshipCollection.cs
- ReadOnlyHierarchicalDataSourceView.cs
- PathFigure.cs
- SafeNativeMethods.cs
- SHA256Cng.cs
- ByteStorage.cs
- ModelUIElement3D.cs
- CloseSequence.cs
- Math.cs
- MarkupExtensionParser.cs
- PropertyPathWorker.cs
- TypeInitializationException.cs
- SerialPort.cs
- SQLBoolean.cs
- ContentFilePart.cs
- XmlIncludeAttribute.cs
- ConnectivityStatus.cs
- ZoneLinkButton.cs
- PipelineModuleStepContainer.cs
- FormViewUpdateEventArgs.cs
- ObjectRef.cs
- DomainUpDown.cs
- AssertSection.cs
- LogStore.cs
- WebPartHeaderCloseVerb.cs
- LogicalTreeHelper.cs
- TransformProviderWrapper.cs
- WS2007HttpBinding.cs
- Number.cs
- ReadOnlyObservableCollection.cs
- PtsCache.cs
- ConfigurationElementProperty.cs
- RegexWriter.cs
- InvocationExpression.cs
- SqlParameterCollection.cs
- MatrixAnimationUsingKeyFrames.cs
- NetworkInformationPermission.cs
- SynchronizationValidator.cs
- ProgressiveCrcCalculatingStream.cs
- ResolveCriteria.cs
- Helper.cs
- ConvertersCollection.cs
- DeviceContext.cs
- SpeakInfo.cs
- HtmlControl.cs
- WindowsSpinner.cs
- SessionStateContainer.cs
- Baml2006KnownTypes.cs
- DescendantOverDescendantQuery.cs
- ProfileParameter.cs
- UnsafeMethods.cs
- RedistVersionInfo.cs
- ADMembershipUser.cs
- Underline.cs
- LinkTarget.cs
- SqlDataSourceView.cs
- FileCodeGroup.cs
- ApplicationActivator.cs
- ScriptingSectionGroup.cs
- DesignerTransaction.cs
- MiniCustomAttributeInfo.cs
- ADMembershipUser.cs
- Int64Storage.cs
- printdlgexmarshaler.cs
- FixedPosition.cs
- SqlConnectionPoolGroupProviderInfo.cs
- FormCollection.cs
- SqlRetyper.cs
- CaseStatement.cs
- StringHandle.cs
- ComPlusTypeLoader.cs
- WebDescriptionAttribute.cs
- EventSetterHandlerConverter.cs
- OdbcError.cs
- SiteMapProvider.cs
- XmlSerializerAssemblyAttribute.cs
- AutomationElementCollection.cs
- StringConverter.cs
- ActivityCodeDomSerializer.cs
- Win32.cs
- AbstractExpressions.cs
- ContextBase.cs
- PerformanceCounter.cs
- ToolBar.cs
- SmiMetaData.cs
- BaseDataListActionList.cs
- WebPartHelpVerb.cs
- TableLayoutRowStyleCollection.cs
- OracleParameter.cs
- listitem.cs
- TemplateBindingExpressionConverter.cs
- EdmSchemaAttribute.cs
- ToolStripItemClickedEventArgs.cs
- recordstatefactory.cs
- _LoggingObject.cs