Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / textformatting / TextTabProperties.cs / 1305600 / TextTabProperties.cs
//------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation, 2004 // // File: TextTabProperties.cs // // Contents: Definition of tab 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 user-defined tab /// public class TextTabProperties { private TextTabAlignment _alignment; private double _location; private int _tabLeader; private int _aligningChar; ////// Construct tab properties /// /// alignment of text at tab location /// tab location /// tab leader /// specific character in text that is aligned at tab location public TextTabProperties( TextTabAlignment alignment, double location, int tabLeader, int aligningChar ) { _alignment = alignment; _location = location; _tabLeader = tabLeader; _aligningChar = aligningChar; } ////// Property to determine how text is aligned at tab location /// public TextTabAlignment Alignment { get { return _alignment; } } ////// Tab location /// public double Location { get { return _location; } } ////// Character used to display tab leader /// public int TabLeader { get { return _tabLeader; } } ////// Specific character in text that is aligned at specified tab location /// public int AligningCharacter { get { return _aligningChar; } } } ////// This property determines how text is aligned at tab location /// public enum TextTabAlignment { ////// Text is left-aligned at tab location /// Left, ////// Text is center-aligned at tab location /// Center, ////// Text is right-aligned at tab location /// Right, ////// Text is aligned at tab location at a specified character /// Character, } } // 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: TextTabProperties.cs // // Contents: Definition of tab 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 user-defined tab /// public class TextTabProperties { private TextTabAlignment _alignment; private double _location; private int _tabLeader; private int _aligningChar; ////// Construct tab properties /// /// alignment of text at tab location /// tab location /// tab leader /// specific character in text that is aligned at tab location public TextTabProperties( TextTabAlignment alignment, double location, int tabLeader, int aligningChar ) { _alignment = alignment; _location = location; _tabLeader = tabLeader; _aligningChar = aligningChar; } ////// Property to determine how text is aligned at tab location /// public TextTabAlignment Alignment { get { return _alignment; } } ////// Tab location /// public double Location { get { return _location; } } ////// Character used to display tab leader /// public int TabLeader { get { return _tabLeader; } } ////// Specific character in text that is aligned at specified tab location /// public int AligningCharacter { get { return _aligningChar; } } } ////// This property determines how text is aligned at tab location /// public enum TextTabAlignment { ////// Text is left-aligned at tab location /// Left, ////// Text is center-aligned at tab location /// Center, ////// Text is right-aligned at tab location /// Right, ////// Text is aligned at tab location at a specified character /// Character, } } // 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
- ClientRolePrincipal.cs
- WindowPattern.cs
- DataGridHeaderBorder.cs
- XmlDomTextWriter.cs
- PlanCompiler.cs
- HeaderedItemsControl.cs
- ManagementScope.cs
- ListenerChannelContext.cs
- CollectionBase.cs
- ForeignKeyConstraint.cs
- CodeBlockBuilder.cs
- DiscoveryDocumentLinksPattern.cs
- URLEditor.cs
- BooleanSwitch.cs
- NonBatchDirectoryCompiler.cs
- HttpFileCollection.cs
- StringBuilder.cs
- AssemblyCacheEntry.cs
- RawUIStateInputReport.cs
- HttpProfileGroupBase.cs
- XsltException.cs
- UrlParameterReader.cs
- KeyFrames.cs
- PanelStyle.cs
- PointLightBase.cs
- DoubleAnimationClockResource.cs
- SchemaComplexType.cs
- AssemblyHash.cs
- ASCIIEncoding.cs
- ChangeDirector.cs
- GridView.cs
- StreamUpgradeAcceptor.cs
- ClientConfigurationHost.cs
- AsyncResult.cs
- ReadOnlyHierarchicalDataSourceView.cs
- AsymmetricKeyExchangeDeformatter.cs
- ButtonBaseAdapter.cs
- AnnotationStore.cs
- ComplexObject.cs
- EventEntry.cs
- HttpListenerResponse.cs
- AxHost.cs
- HttpChannelBindingToken.cs
- TextEvent.cs
- HandlerBase.cs
- CodeMethodReturnStatement.cs
- PublisherMembershipCondition.cs
- BindUriHelper.cs
- BufferedGraphics.cs
- InputElement.cs
- DetailsViewDeleteEventArgs.cs
- ProfileInfo.cs
- HyperLinkStyle.cs
- SafeNativeMethodsCLR.cs
- UserUseLicenseDictionaryLoader.cs
- MetadataLocation.cs
- SchemaContext.cs
- StrongNameKeyPair.cs
- DefaultTraceListener.cs
- InvariantComparer.cs
- ObjectViewListener.cs
- ConfigXmlAttribute.cs
- EncoderParameters.cs
- DependencyPropertyKey.cs
- Pen.cs
- DataBindingCollection.cs
- ClassDataContract.cs
- BamlLocalizabilityResolver.cs
- Int64Storage.cs
- TextEditorSelection.cs
- PeerCredential.cs
- FixedStringLookup.cs
- DataPointer.cs
- DataGridColumnCollection.cs
- IDReferencePropertyAttribute.cs
- AuthorizationRule.cs
- DataGridViewRowCollection.cs
- SharedStatics.cs
- _HTTPDateParse.cs
- CodeDomSerializerException.cs
- Attachment.cs
- Thumb.cs
- MobileCategoryAttribute.cs
- UserCancellationException.cs
- MenuItemStyleCollectionEditor.cs
- MetadataUtil.cs
- StaticExtension.cs
- HandlerWithFactory.cs
- Function.cs
- ToolStripLabel.cs
- MultiPageTextView.cs
- TextDecoration.cs
- SettingsContext.cs
- LocalizableAttribute.cs
- CodeAttributeArgumentCollection.cs
- ViewService.cs
- AppDomainManager.cs
- SequentialUshortCollection.cs
- LinqDataSourceHelper.cs
- ManagementExtension.cs