C# Class PowerStudio.LanguageServices.PowerShell.Formatting.ParagraphPropertiesFactoryService

Inheritance: ITextParagraphPropertiesFactoryService
显示文件 Open project: IntelliTect/PowerStudio

Private Properties

Property Type Description

Public Methods

Method Description
Create ( IFormattedLineSource formattedLineSource, TextFormattingRunProperties textProperties, IMappingSpan line, IMappingPoint lineStart, int lineSegment ) : System.Windows.Media.TextFormatting.TextParagraphProperties

Creates a T:System.Windows.Media.TextFormatting.TextParagraphProperties for the provided configuration.

Please note that you can return a T:Microsoft.VisualStudio.Text.Formatting.TextFormattingParagraphProperties which has a convenient set of basic properties defined.

Method Details

Create() public method

Creates a T:System.Windows.Media.TextFormatting.TextParagraphProperties for the provided configuration.
Please note that you can return a T:Microsoft.VisualStudio.Text.Formatting.TextFormattingParagraphProperties which has a convenient set of basic properties defined.
public Create ( IFormattedLineSource formattedLineSource, TextFormattingRunProperties textProperties, IMappingSpan line, IMappingPoint lineStart, int lineSegment ) : System.Windows.Media.TextFormatting.TextParagraphProperties
formattedLineSource IFormattedLineSource The that's performing the formatting of the line. You can access useful properties about the ongoing formatting operation from this object.
textProperties TextFormattingRunProperties The of the line for which are to be provided. This paramter can be used to obtain formatting information about the textual contents of the line.
line IMappingSpan The corresponding to the line that's being formatted/rendered.
lineStart IMappingPoint The corresponding to the beginning of the line segment that's being formatted. This paramter is relevant for word-wrap scenarios where a single results in multiple formatted/rendered lines on the view.
lineSegment int The segment number of the line segment that's been currently formatted. This is a zero-based index and is applicable to word-wrapped lines. If a line is word-wrapped into 4 segments, you will receive 4 calls for the line with lineSegments of 0, 1, 2, and 3.
return System.Windows.Media.TextFormatting.TextParagraphProperties