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
- PropertyPathWorker.cs
- SystemFonts.cs
- EmissiveMaterial.cs
- EpmSyndicationContentSerializer.cs
- FaultImportOptions.cs
- StoreAnnotationsMap.cs
- Crc32.cs
- TimersDescriptionAttribute.cs
- ScriptingProfileServiceSection.cs
- CategoryEditor.cs
- ResourcePool.cs
- CodeTypeReferenceCollection.cs
- ClrPerspective.cs
- PropertyDescriptorCollection.cs
- ImageIndexConverter.cs
- IChannel.cs
- Set.cs
- ServiceDiscoveryElement.cs
- RewritingValidator.cs
- ConnectionPoint.cs
- UInt32Converter.cs
- AVElementHelper.cs
- PolyBezierSegmentFigureLogic.cs
- TextModifierScope.cs
- WebServiceEnumData.cs
- ComponentEvent.cs
- KnownColorTable.cs
- DBSchemaRow.cs
- SHA1Cng.cs
- HtmlElement.cs
- X509CertificateStore.cs
- XPathQilFactory.cs
- HttpInputStream.cs
- FontDifferentiator.cs
- FieldNameLookup.cs
- AppModelKnownContentFactory.cs
- fixedPageContentExtractor.cs
- AccessControlEntry.cs
- EFAssociationProvider.cs
- CodeSnippetTypeMember.cs
- Vector3DValueSerializer.cs
- _TimerThread.cs
- QueryPageSettingsEventArgs.cs
- SqlClientMetaDataCollectionNames.cs
- GridViewCommandEventArgs.cs
- DataKey.cs
- XmlStreamNodeWriter.cs
- FlowPanelDesigner.cs
- IndexedString.cs
- CompilerLocalReference.cs
- WebBrowserPermission.cs
- GenericPrincipal.cs
- DataGridBoolColumn.cs
- MarkupProperty.cs
- DataGrid.cs
- _KerberosClient.cs
- ObjectSet.cs
- DictionarySectionHandler.cs
- _CookieModule.cs
- DataObjectMethodAttribute.cs
- AuthenticationManager.cs
- CultureTable.cs
- OracleRowUpdatedEventArgs.cs
- Glyph.cs
- GridViewRow.cs
- ResourcePool.cs
- SQLBytes.cs
- CompoundFileStorageReference.cs
- Utils.cs
- WindowsListView.cs
- ExceptionHandler.cs
- InvalidPropValue.cs
- AttachInfo.cs
- COM2ExtendedBrowsingHandler.cs
- AuthenticationModuleElement.cs
- HTMLTagNameToTypeMapper.cs
- XmlSchemaSearchPattern.cs
- PathFigureCollection.cs
- DataGridViewTextBoxColumn.cs
- TypeProvider.cs
- IsolatedStoragePermission.cs
- TraceContext.cs
- RegularExpressionValidator.cs
- MenuAutomationPeer.cs
- ArraySubsetEnumerator.cs
- LineServices.cs
- PropertyTab.cs
- FontDifferentiator.cs
- ProfilePropertyNameValidator.cs
- InvalidCastException.cs
- TrackingMemoryStreamFactory.cs
- PasswordBoxAutomationPeer.cs
- ExeContext.cs
- nulltextcontainer.cs
- DataGridPagingPage.cs
- LogLogRecord.cs
- bidPrivateBase.cs
- EpmCustomContentSerializer.cs
- UpdateCommand.cs
- embossbitmapeffect.cs