Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TickBar.cs
- KeyPressEvent.cs
- ToolStripItemCollection.cs
- DayRenderEvent.cs
- Material.cs
- ReferentialConstraint.cs
- ColorConvertedBitmapExtension.cs
- Compensate.cs
- util.cs
- XmlSchemaImport.cs
- SelectedDatesCollection.cs
- EntityDataSourceWizardForm.cs
- ExceptionRoutedEventArgs.cs
- SqlDataReaderSmi.cs
- ActiveXHelper.cs
- DefaultPrintController.cs
- NumberSubstitution.cs
- JsonGlobals.cs
- IndexedString.cs
- WindowsTreeView.cs
- entityreference_tresulttype.cs
- CalendarDay.cs
- ValidationPropertyAttribute.cs
- TypeSystem.cs
- DataContractSerializerOperationGenerator.cs
- RelationshipType.cs
- remotingproxy.cs
- TransactedBatchingElement.cs
- SerialErrors.cs
- WsatServiceAddress.cs
- Label.cs
- FastEncoder.cs
- TypeDescriptionProviderAttribute.cs
- SerializationFieldInfo.cs
- StatusBarAutomationPeer.cs
- ExpressionTextBox.xaml.cs
- Rect3D.cs
- ContainerCodeDomSerializer.cs
- GridItemCollection.cs
- DelegateTypeInfo.cs
- ComUdtElement.cs
- DocumentGridContextMenu.cs
- StrokeNodeOperations2.cs
- XmlDataSourceView.cs
- TextBoxAutoCompleteSourceConverter.cs
- ConnectorDragDropGlyph.cs
- filewebrequest.cs
- BinarySerializer.cs
- DataSourceView.cs
- ResourceAssociationTypeEnd.cs
- returneventsaver.cs
- SqlStatistics.cs
- Ray3DHitTestResult.cs
- ParameterDataSourceExpression.cs
- SourceLocationProvider.cs
- NumericPagerField.cs
- KnownBoxes.cs
- KnownTypes.cs
- DataGridViewRowStateChangedEventArgs.cs
- MessageBox.cs
- BaseParser.cs
- CultureInfoConverter.cs
- RadialGradientBrush.cs
- TextDecoration.cs
- UpdatePanelControlTrigger.cs
- SqlConnection.cs
- ADMembershipUser.cs
- CategoryGridEntry.cs
- Manipulation.cs
- CodeSubDirectory.cs
- DataGridViewColumnCollectionEditor.cs
- JulianCalendar.cs
- WebBaseEventKeyComparer.cs
- EnumBuilder.cs
- ValueTable.cs
- RelationalExpressions.cs
- SqlCacheDependencyDatabaseCollection.cs
- StorageEntitySetMapping.cs
- PassportAuthenticationEventArgs.cs
- CompModSwitches.cs
- CompilerResults.cs
- DbConnectionFactory.cs
- SerializationStore.cs
- CertificateReferenceElement.cs
- PartitionResolver.cs
- HostAdapter.cs
- ActivityMarkupSerializationProvider.cs
- NegationPusher.cs
- InternalPermissions.cs
- BufferedGraphicsContext.cs
- UTF32Encoding.cs
- XmlUrlEditor.cs
- CompiledXpathExpr.cs
- WebPartHeaderCloseVerb.cs
- RegionIterator.cs
- HostProtectionException.cs
- AspCompat.cs
- OperationResponse.cs
- AssemblyAttributes.cs
- OperationContractAttribute.cs