IPortion

IPortion class

Represents a portion of text inside a text paragraph.

The IPortion type exposes the following members:

Properties

Name Description
portion_format Returns formatting object which contains explicitly set formatting properties of the text portion with no inheritance applied.
Read-only IPortionFormat.
text Gets or sets the plain text of a portion.
Read/write string.
field Returns a field of this portion.
Read-only IField.
as_i_slide_component Allows to get base ISlideComponent interface.
Read-only ISlideComponent.
slide Returns the base slide.
Read-only IBaseSlide.
as_i_presentation_component Allows to get base IPresentationComponent interface.
Read-only IPresentationComponent.
presentation Returns the presentation.
Read-only IPresentation.

Methods

Name Description
add_field(field_type) Converts this portion to the automaticaly updated field.
add_field(internal_string) Converts this portion to the automaticaly updated field.
remove_field() Converts this field portion to the simple portion.
get_rect() Get coordinates of rect that bounds portion. The rect includes all the lines of
text in portion, including empty ones.
get_coordinates() 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.

See Also