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
- XhtmlConformanceSection.cs
- DataGridLinkButton.cs
- VisualCollection.cs
- XPathNavigator.cs
- XmlDictionaryString.cs
- ToolboxItemFilterAttribute.cs
- AdapterUtil.cs
- PrintSchema.cs
- RegexCompilationInfo.cs
- QueryResponse.cs
- HWStack.cs
- TextRangeEditLists.cs
- MediaElementAutomationPeer.cs
- _LocalDataStoreMgr.cs
- CancellableEnumerable.cs
- CheckBoxBaseAdapter.cs
- SerialReceived.cs
- KeyEventArgs.cs
- ChtmlPageAdapter.cs
- UpdateTracker.cs
- AbandonedMutexException.cs
- HtmlControlDesigner.cs
- PasswordRecovery.cs
- StructureChangedEventArgs.cs
- DataReceivedEventArgs.cs
- FormsAuthenticationUser.cs
- MetadataExchangeBindings.cs
- NativeMethods.cs
- ProfileEventArgs.cs
- XPathAncestorQuery.cs
- FormViewDeleteEventArgs.cs
- EventRecord.cs
- ValidationError.cs
- PeerDefaultCustomResolverClient.cs
- TypeReference.cs
- util.cs
- FaultCode.cs
- PageCache.cs
- XmlSchemaAttributeGroupRef.cs
- ZeroOpNode.cs
- CompositeActivityDesigner.cs
- keycontainerpermission.cs
- OverrideMode.cs
- GeometryGroup.cs
- StreamInfo.cs
- StandardTransformFactory.cs
- Events.cs
- NotifyIcon.cs
- CollectionEditVerbManager.cs
- DataSourceListEditor.cs
- Table.cs
- EntitySqlQueryState.cs
- TemplateGroupCollection.cs
- NumberFormatInfo.cs
- TargetParameterCountException.cs
- ComAdminWrapper.cs
- UnauthorizedWebPart.cs
- BoundColumn.cs
- StandardBindingImporter.cs
- SymbolMethod.cs
- BulletChrome.cs
- XmlCollation.cs
- StrokeNodeOperations.cs
- WebBaseEventKeyComparer.cs
- HelpInfo.cs
- UnmanagedBitmapWrapper.cs
- CommentEmitter.cs
- CompoundFileDeflateTransform.cs
- _ProxyChain.cs
- FontStretches.cs
- DiagnosticsConfiguration.cs
- CharacterBufferReference.cs
- DynamicArgumentDialog.cs
- SourceElementsCollection.cs
- sqlnorm.cs
- MiniAssembly.cs
- SparseMemoryStream.cs
- CompoundFileReference.cs
- TableCellCollection.cs
- AppDomainUnloadedException.cs
- AlternateView.cs
- ServiceNameElement.cs
- WebPartZone.cs
- CellParagraph.cs
- MessageQuerySet.cs
- PkcsUtils.cs
- ProjectionCamera.cs
- PackageRelationshipSelector.cs
- ApplicationContext.cs
- SystemColors.cs
- PointConverter.cs
- SafeEventLogWriteHandle.cs
- TextMarkerSource.cs
- wpf-etw.cs
- MouseActionValueSerializer.cs
- UIElement3D.cs
- ApplicationGesture.cs
- DataGridViewCellLinkedList.cs
- JsonDeserializer.cs
- IProvider.cs