Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / System / Windows / Media / textformatting / TextTabProperties.cs / 1 / 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
- MouseCaptureWithinProperty.cs
- ThreadPoolTaskScheduler.cs
- HyperlinkAutomationPeer.cs
- HttpAsyncResult.cs
- DetailsViewUpdatedEventArgs.cs
- ErrorHandler.cs
- RecordManager.cs
- AttributeSetAction.cs
- SamlAuthorityBinding.cs
- RSATokenProvider.cs
- Int32RectValueSerializer.cs
- BinaryWriter.cs
- HttpApplicationStateWrapper.cs
- _ContextAwareResult.cs
- LogEntry.cs
- LinqDataSourceContextData.cs
- ServiceCredentialsSecurityTokenManager.cs
- CodeGenerationManager.cs
- AssemblyUtil.cs
- DataContractJsonSerializer.cs
- VoiceInfo.cs
- AvTraceDetails.cs
- ColorConverter.cs
- WebPartEventArgs.cs
- ExtendedTransformFactory.cs
- XmlCollation.cs
- ControlPaint.cs
- CancellationToken.cs
- ProfileParameter.cs
- invalidudtexception.cs
- RelationshipType.cs
- TimeoutException.cs
- X509Chain.cs
- DefaultDiscoveryService.cs
- SmtpNetworkElement.cs
- SchemaCollectionCompiler.cs
- QilTernary.cs
- ZipArchive.cs
- X509CertificateRecipientClientCredential.cs
- WindowsClientCredential.cs
- TextViewSelectionProcessor.cs
- SqlUserDefinedTypeAttribute.cs
- AutoSizeComboBox.cs
- OdbcConnectionPoolProviderInfo.cs
- SqlBulkCopy.cs
- DataGridHeadersVisibilityToVisibilityConverter.cs
- GridPattern.cs
- PrintController.cs
- DPTypeDescriptorContext.cs
- Int32Animation.cs
- NativeMethods.cs
- Scripts.cs
- ParameterModifier.cs
- DrawListViewSubItemEventArgs.cs
- GraphicsPathIterator.cs
- ServicePointManagerElement.cs
- ListViewItem.cs
- SecurityListenerSettingsLifetimeManager.cs
- EditorPartCollection.cs
- OletxResourceManager.cs
- SmtpFailedRecipientException.cs
- WebZone.cs
- RuleSettings.cs
- MetadataItemSerializer.cs
- Ray3DHitTestResult.cs
- RightsManagementEncryptedStream.cs
- ContainerControl.cs
- SmtpDateTime.cs
- XmlTextReaderImplHelpers.cs
- DataGridViewBindingCompleteEventArgs.cs
- Point3DCollection.cs
- ViewGenResults.cs
- ClientSideProviderDescription.cs
- FlowNode.cs
- ExpressionVisitor.cs
- TemplatedEditableDesignerRegion.cs
- PathFigureCollection.cs
- TdsParserSessionPool.cs
- EventListenerClientSide.cs
- PolicyStatement.cs
- Debugger.cs
- HwndSourceParameters.cs
- CryptoApi.cs
- PersonalizationProviderCollection.cs
- CodeExpressionCollection.cs
- OleDbConnection.cs
- ParameterSubsegment.cs
- RuntimeCompatibilityAttribute.cs
- ContainsRowNumberChecker.cs
- PackUriHelper.cs
- SQLByte.cs
- TimeSpanMinutesConverter.cs
- EncryptedKey.cs
- ToolStripMenuItem.cs
- RegionInfo.cs
- SafeEventLogWriteHandle.cs
- SkipQueryOptionExpression.cs
- SqlEnums.cs
- ColorContext.cs
- Emitter.cs