Portion

Portion class

Represents a portion of text inside a text paragraph.

Portion

NameDescription
Portion()Initializes a new instance of the Portion class.

Returns: Portion


Portion

NameDescription
Portion(String)Initializes a new instance of the Portion class.

Returns: Portion


Portion

NameDescription
Portion(Portion)Initializes a new instance of the Portion class.

Returns: Portion


addField

NameDescription
addField (FieldType)Converts this portion to the automaticaly updated field.

Returns: void


addField

NameDescription
addField (String)Converts this portion to the automaticaly updated field.

Parameters:

NameTypeDescription
internalStringStringInternal name of FieldType.

Returns: void


getCoordinates

NameDescription
getCoordinates ()Get coordinates of the beginning of the portion. The X coordinate of point represents the portion beginning from the first character including left side bearing. The Y coordinate includes top side bearing.

Returns: Point2D.Float


getField

NameDescription
getField ()Returns a field of this portion. Read-only IField.

Returns: Field


getPortionFormat

NameDescription
getPortionFormat ()Returns oformatting bject which contains explicitly set formatting properties of the text portion with no inheritance applied. Read-only IPortionFormat. The formatting object contains the formatting parameters defined for the current portion only, inherited data is not applied. In order to get the effective values including inherited ones use the PortionFormat#getEffective method.

Returns: PortionFormat


getPresentation

NameDescription
getPresentation ()Returns the parent presentation of a text. Read-only IPresentation.

Returns: Presentation


getRect

NameDescription
getRect ()Get coordinates of rect that bounds portion. The rect includes all the lines of text in portion, including empty ones.

Returns: Rectangle2D.Float


getSlide

NameDescription
getSlide ()Returns the parent slide of a text. Read-only BaseSlide.

Returns: MasterHandoutSlide, BaseSlide, LayoutSlide, Slide, MasterSlide, NotesSlide, MasterNotesSlide


getText

NameDescription
getText ()Gets or sets the plain text of a portion. Read/write String. Value: The text.

Returns: String


removeField

NameDescription
removeField ()Converts this field portion to the simple portion.

Returns: void


setText

NameDescription
setText (String)Gets or sets the plain text of a portion. Read/write String. Value: The text.

Returns: void