Class Paragraph
Namespace: Unity.UIWidgets.ui
Syntax
public class Paragraph
Properties
alphabeticBaseline
Declaration
public float alphabeticBaseline { get; }
Property Value
Type | Description |
---|---|
Single |
didExceedMaxLines
Declaration
public bool didExceedMaxLines { get; }
Property Value
Type | Description |
---|---|
Boolean |
height
Declaration
public float height { get; }
Property Value
Type | Description |
---|---|
Single |
ideographicBaseline
Declaration
public float ideographicBaseline { get; }
Property Value
Type | Description |
---|---|
Single |
maxIntrinsicWidth
Declaration
public float maxIntrinsicWidth { get; }
Property Value
Type | Description |
---|---|
Single |
minIntrinsicWidth
Declaration
public float minIntrinsicWidth { get; }
Property Value
Type | Description |
---|---|
Single |
width
Declaration
public float width { get; }
Property Value
Type | Description |
---|---|
Single |
Methods
clear()
Declaration
public void clear()
create()
Declaration
public static Paragraph create()
Returns
Type | Description |
---|---|
Paragraph |
getLine(TextPosition)
Declaration
public int getLine(TextPosition position)
Parameters
Type | Name | Description |
---|---|---|
TextPosition | position |
Returns
Type | Description |
---|---|
Int32 |
getLineCount()
Declaration
public int getLineCount()
Returns
Type | Description |
---|---|
Int32 |
getNextLineStartRectTop()
Declaration
public float? getNextLineStartRectTop()
Returns
Type | Description |
---|---|
Nullable<Single> |
getRectsForRange(Int32, Int32)
Declaration
public List<TextBox> getRectsForRange(int start, int end)
Parameters
Type | Name | Description |
---|---|---|
Int32 | start | |
Int32 | end |
Returns
Type | Description |
---|---|
List<TextBox> |
layout(ParagraphConstraints)
Declaration
public void layout(ParagraphConstraints constraints)
Parameters
Type | Name | Description |
---|---|---|
ParagraphConstraints | constraints |
paint(Canvas, Offset)
Declaration
public void paint(Canvas canvas, Offset offset)
Parameters
Type | Name | Description |
---|---|---|
Canvas | canvas | |
Offset | offset |
release(ref Paragraph)
Declaration
public static void release(ref Paragraph paragraph)
Parameters
Type | Name | Description |
---|---|---|
Paragraph | paragraph |
setParagraphStyle(ParagraphStyle)
Declaration
public void setParagraphStyle(ParagraphStyle style)
Parameters
Type | Name | Description |
---|---|---|
ParagraphStyle | style |