Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / textformatting / TextCollapsingProperties.cs / 1305600 / TextCollapsingProperties.cs
//------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation, 2004 // // File: TextCollapsingProperties.cs // // Contents: Definition of text collapsing properties and related types // // 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 { ////// Properties of text collapsing /// public abstract class TextCollapsingProperties { ////// TextFormatter to get width in which specified collapsible range constrained to /// public abstract double Width { get; } ////// TextFormatter to get text run used as collapsing symbol /// public abstract TextRun Symbol { get; } ////// TextFormatter to get style of collapsing /// public abstract TextCollapsingStyle Style { get; } } ////// Range of characters and its width measurement where collapsing has happened within a line /// public sealed class TextCollapsedRange { private int _cp; private int _length; private double _width; ////// Construct a collapsed range /// /// first character collapsed /// number of characters collapsed /// total width of collapsed characters internal TextCollapsedRange( int cp, int length, double width ) { _cp = cp; _length = length; _width = width; } ////// text source character index to the first character in range that is collapsed /// public int TextSourceCharacterIndex { get { return _cp; } } ////// number of characters collapsed /// public int Length { get { return _length; } } ////// total width of collapsed character range /// public double Width { get { return _width; } } } ////// Text collapsing style /// public enum TextCollapsingStyle { ////// Collapse trailing characters /// TrailingCharacter, ////// Collapse trailing words /// TrailingWord, } } // 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: TextCollapsingProperties.cs // // Contents: Definition of text collapsing properties and related types // // 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 { ////// Properties of text collapsing /// public abstract class TextCollapsingProperties { ////// TextFormatter to get width in which specified collapsible range constrained to /// public abstract double Width { get; } ////// TextFormatter to get text run used as collapsing symbol /// public abstract TextRun Symbol { get; } ////// TextFormatter to get style of collapsing /// public abstract TextCollapsingStyle Style { get; } } ////// Range of characters and its width measurement where collapsing has happened within a line /// public sealed class TextCollapsedRange { private int _cp; private int _length; private double _width; ////// Construct a collapsed range /// /// first character collapsed /// number of characters collapsed /// total width of collapsed characters internal TextCollapsedRange( int cp, int length, double width ) { _cp = cp; _length = length; _width = width; } ////// text source character index to the first character in range that is collapsed /// public int TextSourceCharacterIndex { get { return _cp; } } ////// number of characters collapsed /// public int Length { get { return _length; } } ////// total width of collapsed character range /// public double Width { get { return _width; } } } ////// Text collapsing style /// public enum TextCollapsingStyle { ////// Collapse trailing characters /// TrailingCharacter, ////// Collapse trailing words /// 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
- CurrentChangedEventManager.cs
- arabicshape.cs
- MimeMapping.cs
- BindingCollection.cs
- SoapCodeExporter.cs
- SqlTriggerAttribute.cs
- EditorAttribute.cs
- File.cs
- AvTraceDetails.cs
- assertwrapper.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- GridItemPattern.cs
- SchemaTableColumn.cs
- DurableEnlistmentState.cs
- RankException.cs
- ConditionalAttribute.cs
- Rect.cs
- Latin1Encoding.cs
- Expressions.cs
- Rule.cs
- EventlogProvider.cs
- PageFunction.cs
- __Error.cs
- MediaContextNotificationWindow.cs
- XmlQueryStaticData.cs
- ChineseLunisolarCalendar.cs
- DatagramAdapter.cs
- ContactManager.cs
- MessageQueuePermissionAttribute.cs
- CodeTypeReferenceCollection.cs
- TimerEventSubscription.cs
- UIElement.cs
- DefaultPropertyAttribute.cs
- ErrorFormatterPage.cs
- SiteMapPath.cs
- OracleBoolean.cs
- XmlAtomicValue.cs
- RbTree.cs
- DataSvcMapFile.cs
- HexParser.cs
- returneventsaver.cs
- StringTraceRecord.cs
- RewritingProcessor.cs
- OdbcEnvironmentHandle.cs
- JavaScriptObjectDeserializer.cs
- AnnouncementEndpoint.cs
- XPathNodeHelper.cs
- Membership.cs
- ParsedAttributeCollection.cs
- ResolveNameEventArgs.cs
- WebPartEditorOkVerb.cs
- StreamResourceInfo.cs
- SyndicationSerializer.cs
- WindowsIdentity.cs
- TransformGroup.cs
- MultipartIdentifier.cs
- MailMessageEventArgs.cs
- DataBinder.cs
- GridViewCancelEditEventArgs.cs
- HGlobalSafeHandle.cs
- ISO2022Encoding.cs
- FileInfo.cs
- PropagatorResult.cs
- BufferedGraphicsContext.cs
- LocalizedNameDescriptionPair.cs
- CultureMapper.cs
- LockedHandleGlyph.cs
- SiteMapProvider.cs
- _TransmitFileOverlappedAsyncResult.cs
- SafeIUnknown.cs
- RecipientInfo.cs
- GenericTypeParameterBuilder.cs
- PropertyRecord.cs
- LoginCancelEventArgs.cs
- xmlglyphRunInfo.cs
- InvokeHandlers.cs
- MoveSizeWinEventHandler.cs
- XmlNamespaceDeclarationsAttribute.cs
- TextRangeProviderWrapper.cs
- DependencyObject.cs
- SqlReferenceCollection.cs
- UrlAuthFailedErrorFormatter.cs
- MemoryResponseElement.cs
- ParameterElement.cs
- MexHttpBindingCollectionElement.cs
- DataGridHelper.cs
- BaseParaClient.cs
- ResponseStream.cs
- Schema.cs
- LinqDataSourceInsertEventArgs.cs
- FieldMetadata.cs
- XmlDownloadManager.cs
- PngBitmapEncoder.cs
- NTAccount.cs
- NavigationProperty.cs
- StyleBamlRecordReader.cs
- HotCommands.cs
- ContainerFilterService.cs
- HealthMonitoringSection.cs
- LocatorPartList.cs