Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / System / Windows / Media / textformatting / TextParagraphProperties.cs / 1 / TextParagraphProperties.cs
//------------------------------------------------------------------------
//
// Microsoft Windows Client Platform
// Copyright (C) Microsoft Corporation
//
// File: TextParagraphProperties.cs
//
// Contents: Text paragraph properties
//
// Spec: http://team/sites/Avalon/Specs/Text%20Formatting%20API.doc
//
// Created: 1-7-2005 Worachai Chaoweeraprasit (wchao)
//
//-----------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Windows;
using MS.Internal.PresentationCore;
namespace System.Windows.Media.TextFormatting
{
///
/// Properties that can change from one paragraph to the next, such as
/// text flow direction, text alignment, or indentation.
///
public abstract class TextParagraphProperties
{
///
/// This property specifies whether the primary text advance
/// direction shall be left-to-right, right-to-left, or top-to-bottom.
///
public abstract FlowDirection FlowDirection
{ get; }
///
/// This property describes how inline content of a block is aligned.
///
public abstract TextAlignment TextAlignment
{ get; }
///
/// Paragraph's line height
///
public abstract double LineHeight
{ get; }
///
/// Indicates the first line of the paragraph.
///
public abstract bool FirstLineInParagraph
{ get; }
///
/// If true, the formatted line may always be collapsed. If false (the default),
/// only lines that overflow the paragraph width are collapsed.
///
public virtual bool AlwaysCollapsible
{
get { return false; }
}
///
/// Paragraph's default run properties
///
public abstract TextRunProperties DefaultTextRunProperties
{ get; }
///
/// If not null, text decorations to apply to all runs in the line. This is in addition
/// to any text decorations specified by the TextRunProperties for individual text runs.
///
public virtual TextDecorationCollection TextDecorations
{
get { return null; }
}
///
/// This property controls whether or not text wraps when it reaches the flow edge
/// of its containing block box
///
public abstract TextWrapping TextWrapping
{ get; }
///
/// This property specifies marker characteristics of the first line in paragraph
///
public abstract TextMarkerProperties TextMarkerProperties
{ get; }
///
/// Line indentation
///
public abstract double Indent
{ get; }
///
/// Paragraph indentation
///
public virtual double ParagraphIndent
{
get { return 0; }
}
///
/// Default Incremental Tab
///
public virtual double DefaultIncrementalTab
{
get { return 4 * DefaultTextRunProperties.FontRenderingEmSize; }
}
///
/// Collection of tab definitions
///
public virtual IList Tabs
{
get { return null; }
}
///
/// Lexical component providing hyphenation opportunity.
///
#if HYPHENATION_API
public virtual TextLexicalService Hyphenator
{
get { return null; }
}
#else
private TextLexicalService _hyphenator;
internal virtual TextLexicalService Hyphenator
{
[FriendAccessAllowed] // used by Framework
get { return _hyphenator; }
[FriendAccessAllowed] // used by Framework
set { _hyphenator = value; }
}
#endif
}
}
// 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
//
// File: TextParagraphProperties.cs
//
// Contents: Text paragraph properties
//
// Spec: http://team/sites/Avalon/Specs/Text%20Formatting%20API.doc
//
// Created: 1-7-2005 Worachai Chaoweeraprasit (wchao)
//
//-----------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Windows;
using MS.Internal.PresentationCore;
namespace System.Windows.Media.TextFormatting
{
///
/// Properties that can change from one paragraph to the next, such as
/// text flow direction, text alignment, or indentation.
///
public abstract class TextParagraphProperties
{
///
/// This property specifies whether the primary text advance
/// direction shall be left-to-right, right-to-left, or top-to-bottom.
///
public abstract FlowDirection FlowDirection
{ get; }
///
/// This property describes how inline content of a block is aligned.
///
public abstract TextAlignment TextAlignment
{ get; }
///
/// Paragraph's line height
///
public abstract double LineHeight
{ get; }
///
/// Indicates the first line of the paragraph.
///
public abstract bool FirstLineInParagraph
{ get; }
///
/// If true, the formatted line may always be collapsed. If false (the default),
/// only lines that overflow the paragraph width are collapsed.
///
public virtual bool AlwaysCollapsible
{
get { return false; }
}
///
/// Paragraph's default run properties
///
public abstract TextRunProperties DefaultTextRunProperties
{ get; }
///
/// If not null, text decorations to apply to all runs in the line. This is in addition
/// to any text decorations specified by the TextRunProperties for individual text runs.
///
public virtual TextDecorationCollection TextDecorations
{
get { return null; }
}
///
/// This property controls whether or not text wraps when it reaches the flow edge
/// of its containing block box
///
public abstract TextWrapping TextWrapping
{ get; }
///
/// This property specifies marker characteristics of the first line in paragraph
///
public abstract TextMarkerProperties TextMarkerProperties
{ get; }
///
/// Line indentation
///
public abstract double Indent
{ get; }
///
/// Paragraph indentation
///
public virtual double ParagraphIndent
{
get { return 0; }
}
///
/// Default Incremental Tab
///
public virtual double DefaultIncrementalTab
{
get { return 4 * DefaultTextRunProperties.FontRenderingEmSize; }
}
///
/// Collection of tab definitions
///
public virtual IList Tabs
{
get { return null; }
}
///
/// Lexical component providing hyphenation opportunity.
///
#if HYPHENATION_API
public virtual TextLexicalService Hyphenator
{
get { return null; }
}
#else
private TextLexicalService _hyphenator;
internal virtual TextLexicalService Hyphenator
{
[FriendAccessAllowed] // used by Framework
get { return _hyphenator; }
[FriendAccessAllowed] // used by Framework
set { _hyphenator = value; }
}
#endif
}
}
// 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
- ConditionalBranch.cs
- MenuTracker.cs
- InputLanguageCollection.cs
- FrameworkContentElement.cs
- DependencyPropertyDescriptor.cs
- EllipseGeometry.cs
- InputManager.cs
- DatatypeImplementation.cs
- ContextStack.cs
- GridViewDeleteEventArgs.cs
- SharedPerformanceCounter.cs
- SecurityUtils.cs
- StringConcat.cs
- HTMLTextWriter.cs
- ActionMismatchAddressingException.cs
- CheckedListBox.cs
- ClassicBorderDecorator.cs
- LockedAssemblyCache.cs
- StateValidator.cs
- AnnotationObservableCollection.cs
- GeneralTransform3D.cs
- DBCommandBuilder.cs
- ScriptReference.cs
- XmlException.cs
- ImageIndexEditor.cs
- NodeLabelEditEvent.cs
- SqlFileStream.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- GridProviderWrapper.cs
- CmsInterop.cs
- GridView.cs
- CodeSnippetTypeMember.cs
- MsmqInputMessage.cs
- HtmlControl.cs
- objectquery_tresulttype.cs
- Win32PrintDialog.cs
- DataTableMappingCollection.cs
- CurrencyManager.cs
- GridView.cs
- OleDbReferenceCollection.cs
- ServicesExceptionNotHandledEventArgs.cs
- ReadOnlyNameValueCollection.cs
- ThrowOnMultipleAssignment.cs
- DialogResultConverter.cs
- TextContainer.cs
- DataGridViewRowsAddedEventArgs.cs
- RtfFormatStack.cs
- WindowsIdentity.cs
- ToolStripControlHost.cs
- ExtendedProtectionPolicyElement.cs
- TemplateControlParser.cs
- Win32.cs
- SizeFConverter.cs
- bidPrivateBase.cs
- PersonalizablePropertyEntry.cs
- ReturnType.cs
- DSASignatureFormatter.cs
- PropertyAccessVisitor.cs
- DecimalFormatter.cs
- ByeMessage11.cs
- CodeMethodInvokeExpression.cs
- DragDrop.cs
- CommentEmitter.cs
- InstanceDescriptor.cs
- RowParagraph.cs
- TypeForwardedToAttribute.cs
- CodeMethodReturnStatement.cs
- Roles.cs
- SafeNativeMethods.cs
- DataPager.cs
- Convert.cs
- StringUtil.cs
- ScalarConstant.cs
- Matrix.cs
- ImageKeyConverter.cs
- CodeAttributeArgument.cs
- AttachedAnnotationChangedEventArgs.cs
- SafeUserTokenHandle.cs
- WsdlInspector.cs
- RenderData.cs
- DriveInfo.cs
- BaseAddressElementCollection.cs
- ConfigurationPermission.cs
- SqlDelegatedTransaction.cs
- TextDecorations.cs
- CodeMemberField.cs
- GeometryHitTestParameters.cs
- HScrollBar.cs
- CreateUserWizard.cs
- EncryptionUtility.cs
- DataGridViewBand.cs
- MenuItemAutomationPeer.cs
- CustomErrorCollection.cs
- XPathItem.cs
- TopClause.cs
- EntityDescriptor.cs
- WMIInterop.cs
- BaseCAMarshaler.cs
- SmiTypedGetterSetter.cs
- TimelineGroup.cs