IPortion Interface

Represents a portion of text inside a text paragraph.

Namespace:  Aspose.Slides
Assembly:  Aspose.Slides (in Aspose.Slides.dll) Version: (22.1)
public interface IPortion : ISlideComponent, 

The IPortion type exposes the following members.

Public propertyAsIPresentationComponent
Allows to get base IPresentationComponent interface. Read-only IPresentationComponent.
(Inherited from ISlideComponent.)
Public propertyAsISlideComponent
Allows to get base ISlideComponent interface. Read-only ISlideComponent.
Public propertyField
Returns a field of this portion. Read-only IField.
Public propertyPortionFormat
Returns formatting object which contains explicitly set formatting properties of the text portion with no inheritance applied. Read-only IPortionFormat.
Public propertyPresentation
Returns the presentation. Read-only IPresentation.
(Inherited from IPresentationComponent.)
Public propertySlide
Returns the base slide. Read-only IBaseSlide.
(Inherited from ISlideComponent.)
Public propertyText
Gets or sets the plain text of a portion. Read/write String.
Public methodAddField(String)
Converts this portion to the automaticaly updated field.
Public methodAddField(IFieldType)
Converts this portion to the automaticaly updated field.
Public methodGetCoordinates
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.
Public methodCode exampleGetRect
Get coordinates of rect that bounds portion. The rect includes all the lines of text in portion, including empty ones.
Public methodRemoveField
Converts this field portion to the simple portion.
See Also