Inheritance
System.Object
RenderParagraph
public class RenderParagraph : RenderBox, HitTestTarget
Constructors
RenderParagraph(TextSpan, TextAlign, TextDirection, Boolean, TextOverflow, Single, Nullable<Int32>, Action, Color)
Declaration
public RenderParagraph(TextSpan text, TextAlign textAlign = TextAlign.left, TextDirection textDirection = TextDirection.ltr, bool softWrap = true, TextOverflow overflow = TextOverflow.clip, float textScaleFactor = 1F, int? maxLines = default(int? ), Action onSelectionChanged = null, Color selectionColor = null)
Parameters
Type |
Name |
Description |
TextSpan |
text |
|
TextAlign |
textAlign |
|
TextDirection |
textDirection |
|
System.Boolean |
softWrap |
|
TextOverflow |
overflow |
|
System.Single |
textScaleFactor |
|
System.Nullable<System.Int32> |
maxLines |
|
System.Action |
onSelectionChanged |
|
Color |
selectionColor |
|
Fields
Declaration
public Action onSelectionChanged
Field Value
Type |
Description |
System.Action |
|
Declaration
public Color selectionColor
Field Value
Properties
Declaration
public bool hasFocus { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public int? maxLines { get; set; }
Property Value
Type |
Description |
System.Nullable<System.Int32> |
|
Declaration
public TextOverflow overflow { get; set; }
Property Value
Declaration
public TextSelection selection { get; set; }
Property Value
Declaration
public bool softWrap { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
text
Declaration
public TextSpan text { get; set; }
Property Value
textAlign
Declaration
public TextAlign textAlign { get; set; }
Property Value
textDirection
Declaration
public TextDirection? textDirection { get; set; }
Property Value
textScaleFactor
Declaration
public float textScaleFactor { get; set; }
Property Value
Type |
Description |
System.Single |
|
textSize
Declaration
public Size textSize { get; }
Property Value
Methods
Declaration
public override void attach(object owner)
Parameters
Type |
Name |
Description |
System.Object |
owner |
|
Overrides
computeDistanceToActualBaseline(TextBaseline)
Declaration
protected override float? computeDistanceToActualBaseline(TextBaseline baseline)
Parameters
Returns
Type |
Description |
System.Nullable<System.Single> |
|
Overrides
Declaration
protected override float computeMaxIntrinsicHeight(float width)
Parameters
Type |
Name |
Description |
System.Single |
width |
|
Returns
Type |
Description |
System.Single |
|
Overrides
Declaration
protected override float computeMaxIntrinsicWidth(float height)
Parameters
Type |
Name |
Description |
System.Single |
height |
|
Returns
Type |
Description |
System.Single |
|
Overrides
Declaration
protected override float computeMinIntrinsicHeight(float width)
Parameters
Type |
Name |
Description |
System.Single |
width |
|
Returns
Type |
Description |
System.Single |
|
Overrides
Declaration
protected override float computeMinIntrinsicWidth(float height)
Parameters
Type |
Name |
Description |
System.Single |
height |
|
Returns
Type |
Description |
System.Single |
|
Overrides
Declaration
public override List<DiagnosticsNode> debugDescribeChildren()
Returns
Overrides
Declaration
public override void debugFillProperties(DiagnosticPropertiesBuilder properties)
Parameters
Overrides
Declaration
public override void detach()
Overrides
getOffsetForCaret(TextPosition, Rect)
Declaration
protected Offset getOffsetForCaret(TextPosition position, Rect caretPrototype)
Parameters
Returns
handleEvent(PointerEvent, HitTestEntry)
Declaration
public override void handleEvent(PointerEvent evt, HitTestEntry entry)
Parameters
Overrides
Declaration
protected override bool hitTestSelf(Offset position)
Parameters
Type |
Name |
Description |
Offset |
position |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
paint(PaintingContext, Offset)
Declaration
public override void paint(PaintingContext context, Offset offset)
Parameters
Overrides
Declaration
protected override void performLayout()
Overrides
Declaration
public void selectPositionAt(Offset from = null, Offset to = null, SelectionChangedCause? cause = default(SelectionChangedCause? ))
Parameters