Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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 IListTabs { 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 IListTabs { 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
- CodeArgumentReferenceExpression.cs
- Hex.cs
- _DisconnectOverlappedAsyncResult.cs
- ConfigurationStrings.cs
- WrappedIUnknown.cs
- HttpClientCertificate.cs
- SpotLight.cs
- PropertyCollection.cs
- RoleGroup.cs
- FloaterParaClient.cs
- PassportAuthenticationModule.cs
- CngAlgorithmGroup.cs
- GeometryHitTestResult.cs
- MetadataItemEmitter.cs
- DataGridViewCellEventArgs.cs
- Message.cs
- WindowsAuthenticationEventArgs.cs
- AttachedPropertyDescriptor.cs
- DialogResultConverter.cs
- EventLogPermissionHolder.cs
- UnhandledExceptionEventArgs.cs
- BitmapEffectDrawingContent.cs
- CodeMethodInvokeExpression.cs
- HtmlControlPersistable.cs
- MembershipSection.cs
- ProgressBarAutomationPeer.cs
- ToolStripOverflowButton.cs
- HandlerWithFactory.cs
- ReadOnlyCollectionBuilder.cs
- SymLanguageType.cs
- LocalBuilder.cs
- QueryStringHandler.cs
- MsmqHostedTransportManager.cs
- webproxy.cs
- DelegateArgumentReference.cs
- AssemblyInfo.cs
- MessageDescription.cs
- LinqDataSourceUpdateEventArgs.cs
- AspNetSynchronizationContext.cs
- ResourceAssociationSetEnd.cs
- Label.cs
- CodeExpressionStatement.cs
- AttachmentCollection.cs
- KnownIds.cs
- EventLogHandle.cs
- XAMLParseException.cs
- GroupDescription.cs
- QueryCursorEventArgs.cs
- DataGridViewCellPaintingEventArgs.cs
- IntSecurity.cs
- ModelService.cs
- SliderAutomationPeer.cs
- TranslateTransform3D.cs
- AxHost.cs
- HierarchicalDataBoundControl.cs
- XmlAttributeHolder.cs
- SHA512CryptoServiceProvider.cs
- StaticResourceExtension.cs
- LabelExpression.cs
- HtmlCommandAdapter.cs
- PackageDigitalSignatureManager.cs
- AvtEvent.cs
- SystemShuttingDownException.cs
- DataBinder.cs
- DeviceFilterDictionary.cs
- Polyline.cs
- WorkflowViewElement.cs
- ObjectIDGenerator.cs
- TextServicesDisplayAttribute.cs
- HebrewNumber.cs
- ZoneIdentityPermission.cs
- AssemblyLoader.cs
- WorkflowMarkupSerializer.cs
- TakeQueryOptionExpression.cs
- ConsoleTraceListener.cs
- TextContainerChangedEventArgs.cs
- WindowsGraphics.cs
- SQLDateTime.cs
- Mappings.cs
- BinaryReader.cs
- EdmItemCollection.cs
- DataRelationPropertyDescriptor.cs
- RSAPKCS1SignatureFormatter.cs
- Pkcs9Attribute.cs
- MouseWheelEventArgs.cs
- DPCustomTypeDescriptor.cs
- DbConnectionPool.cs
- CellCreator.cs
- MultiPropertyDescriptorGridEntry.cs
- CuspData.cs
- PseudoWebRequest.cs
- basemetadatamappingvisitor.cs
- NodeLabelEditEvent.cs
- CellIdBoolean.cs
- IsolatedStorageFileStream.cs
- VirtualDirectoryMappingCollection.cs
- EventWaitHandleSecurity.cs
- OracleCommand.cs
- ObjectSecurity.cs
- ReaderWriterLock.cs