com.aspose.slides
Class Portion

java.lang.Object
  extended by com.aspose.slides.Portion
All Implemented Interfaces:
IPortion, IPresentationComponent, ISlideComponent

public final class Portion
extends java.lang.Object
implements IPortion

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

Portion

public Portion()

Initializes a new instance of the Portion class.


Portion

public Portion(java.lang.String str)

Initializes a new instance of the Portion class.


Portion

public Portion(Portion portion)

Initializes a new instance of the Portion class.

Method Detail

getPortionFormat

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.

Specified by:
getPortionFormat in interface IPortion

createPortionFormatEffective

public IPortionFormatEffectiveData createPortionFormatEffective()

Creates and returns PortionFormatEffectiveData object which contains current portion formatting properties, including inherited.

Specified by:
createPortionFormatEffective in interface IPortion
Returns:
A PortionFormatEffectiveData instance.

getText

public java.lang.String getText()

Gets or sets the plain text of a portion. Read/write String.

Value: The text.

Specified by:
getText in interface IPortion

setText

public void setText(java.lang.String value)

Gets or sets the plain text of a portion. Read/write String.

Value: The text.

Specified by:
setText in interface IPortion

getField

public IField getField()

Returns a field of this portion. Read-only IField.

Specified by:
getField in interface IPortion

addField

public void addField(IFieldType fieldType)

Converts this portion to the automaticaly updated field.

Specified by:
addField in interface IPortion

addField

public void addField(java.lang.String internalString)

Converts this portion to the automaticaly updated field.

Specified by:
addField in interface IPortion
Parameters:
internalString - Internal name of FieldType.

removeField

public void removeField()

Converts this field portion to the simple portion.

Specified by:
removeField in interface IPortion

getSlide

public IBaseSlide getSlide()

Returns the parent slide of a text. Read-only BaseSlide.

Specified by:
getSlide in interface ISlideComponent

getPresentation

public IPresentation getPresentation()

Returns the parent presentation of a text. Read-only IPresentation.

Specified by:
getPresentation in interface IPresentationComponent

getParent_Immediate

public com.aspose.slides.IDOMObject getParent_Immediate()

Returns Parent_Immediate object. Read-only IDOMObject.



Copyright © Copyright 2004-2016 Aspose Pty Ltd. All Rights Reserved.