|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.slides.Portion
public final class Portion
Represents a portion of text inside a text paragraph.
Constructor Summary | |
---|---|
Portion()
Initializes a new instance of the Portion class. |
|
Portion(Portion portion)
Initializes a new instance of the Portion class. |
|
Portion(java.lang.String str)
Initializes a new instance of the Portion class. |
Method Summary | |
---|---|
void |
addField(IFieldType fieldType)
Converts this portion to the automaticaly updated field. |
void |
addField(java.lang.String internalString)
Converts this portion to the automaticaly updated field. |
IPortionFormatEffectiveData |
createPortionFormatEffective()
Creates and returns PortionFormatEffectiveData object which contains current portion formatting properties, including inherited. |
IField |
getField()
Returns a field of this portion. |
com.aspose.slides.IDOMObject |
getParent_Immediate()
Returns Parent_Immediate object. |
IPortionFormat |
getPortionFormat()
Returns oformatting bject which contains explicitly set formatting properties of the text portion with no inheritance applied. |
IPresentation |
getPresentation()
Returns the parent presentation of a text. |
IBaseSlide |
getSlide()
Returns the parent slide of a text. |
java.lang.String |
getText()
Gets or sets the plain text of a portion. |
void |
removeField()
Converts this field portion to the simple portion. |
void |
setText(java.lang.String value)
Gets or sets the plain text of a portion. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Portion()
Initializes a new instance of the Portion class.
public Portion(java.lang.String str)
Initializes a new instance of the Portion class.
public Portion(Portion portion)
Initializes a new instance of the Portion class.
Method Detail |
---|
public IPortionFormat 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 CreatePortionFormatEffective
method.
getPortionFormat
in interface IPortion
public IPortionFormatEffectiveData createPortionFormatEffective()
Creates and returns PortionFormatEffectiveData
object which contains current portion formatting properties, including inherited.
createPortionFormatEffective
in interface IPortion
PortionFormatEffectiveData
instance.public java.lang.String getText()
Gets or sets the plain text of a portion.
Read/write String
.
getText
in interface IPortion
public void setText(java.lang.String value)
Gets or sets the plain text of a portion.
Read/write String
.
setText
in interface IPortion
public IField getField()
Returns a field of this portion.
Read-only IField
.
getField
in interface IPortion
public void addField(IFieldType fieldType)
Converts this portion to the automaticaly updated field.
addField
in interface IPortion
public void addField(java.lang.String internalString)
Converts this portion to the automaticaly updated field.
addField
in interface IPortion
internalString
- Internal name of FieldType.public void removeField()
Converts this field portion to the simple portion.
removeField
in interface IPortion
public IBaseSlide getSlide()
Returns the parent slide of a text.
Read-only BaseSlide
.
getSlide
in interface ISlideComponent
public IPresentation getPresentation()
Returns the parent presentation of a text.
Read-only IPresentation
.
getPresentation
in interface IPresentationComponent
public com.aspose.slides.IDOMObject getParent_Immediate()
Returns Parent_Immediate object.
Read-only IDOMObject
.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |