Share via


Paint.EndHyphenEdit Property

Definition

Get the current value of end hyphen edit. -or- Set a end hyphen edit on the paint.

public virtual int EndHyphenEdit { [Android.Runtime.Register("getEndHyphenEdit", "()I", "GetGetEndHyphenEditHandler", ApiSince=29)] get; [Android.Runtime.Register("setEndHyphenEdit", "(I)V", "GetSetEndHyphenEdit_IHandler", ApiSince=29)] set; }
[<get: Android.Runtime.Register("getEndHyphenEdit", "()I", "GetGetEndHyphenEditHandler", ApiSince=29)>]
[<set: Android.Runtime.Register("setEndHyphenEdit", "(I)V", "GetSetEndHyphenEdit_IHandler", ApiSince=29)>]
member this.EndHyphenEdit : int with get, set

Property Value

the current starting hyphen edit value

Attributes

Remarks

Property getter documentation:

Get the current value of end hyphen edit.

The default value is 0 which is equivalent to #END_HYPHEN_EDIT_NO_EDIT.

Java documentation for android.graphics.Paint.getEndHyphenEdit().

Property setter documentation:

Set a end hyphen edit on the paint.

By setting end hyphen edit, the measurement and drawing is performed with modifying hyphenation at the end of line. For example, by passing #END_HYPHEN_EDIT_INSERT_HYPHEN like as follows, HYPHEN(U+2010) character is appended at the end of line.

<code>
              Paint paint = new Paint();
              paint.setEndHyphenEdit(Paint.END_HYPHEN_EDIT_INSERT_HYPHEN);
              paint.measureText("abc", 0, 3);  // Returns the width of "abc-"
              Canvas.drawText("abc", 0, 3, 0f, 0f, paint);  // Draws "abc-"
</code>

The default value is 0 which is equivalent to #END_HYPHEN_EDIT_NO_EDIT.

Java documentation for android.graphics.Paint.setEndHyphenEdit(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to