MathArray

Inheritance: java.lang.Object, com.aspose.slides.MathElementBase

All Implemented Interfaces: com.aspose.slides.IMathArray

public final class MathArray extends MathElementBase implements IMathArray

Specifies a vertical array of equations or any mathematical objects


Example:
 
 MathArray mathArray = new MathArray(new MathematicalText("item1"));

Constructors

ConstructorDescription
MathArray(IMathElement element)Creates a mathematical array and places the specified element in it
MathArray(System.Collections.Generic.IGenericEnumerable elements)Creates a mathematical array and places specified elements in it

Methods

MethodDescription
getArguments()The set of items of the array
getBaseJustification()Specifies alignment of the array relative to surrounding text Text outside of the array can be aligned with the bottom, top, or center of a array object.
setBaseJustification(int value)Specifies alignment of the array relative to surrounding text Text outside of the array can be aligned with the bottom, top, or center of a array object.
getMaximumDistribution()Maximum Distribution When true, the array is spaced to the maximum width of the containing element(page, column, cell, etc.).
setMaximumDistribution(boolean value)Maximum Distribution When true, the array is spaced to the maximum width of the containing element(page, column, cell, etc.).
getObjectDistribution()Object Distribution When true, the contents of the array are spaced to the maximum width of the array object.
setObjectDistribution(boolean value)Object Distribution When true, the contents of the array are spaced to the maximum width of the array object.
getRowSpacingRule()The type of vertical spacing between array elements Default: SingleLineGap
setRowSpacingRule(int value)The type of vertical spacing between array elements Default: SingleLineGap
getRowSpacing()Spacing between rows of an array It is used only when RowSpacingRule is set to 3 Exactly in which case the unit of measure is points or Multiple in which case the unit of measure is half-lines.
setRowSpacing(long value)Spacing between rows of an array It is used only when RowSpacingRule is set to 3 Exactly in which case the unit of measure is points or Multiple in which case the unit of measure is half-lines.
getChildren()Get children elements

MathArray(IMathElement element)

public MathArray(IMathElement element)

Creates a mathematical array and places the specified element in it


Example:
 
 MathArray mathArray = new MathArray(new MathematicalText("item1"));

Parameters:

ParameterTypeDescription
elementIMathElementThe element to place in the array

MathArray(System.Collections.Generic.IGenericEnumerable elements)

public MathArray(System.Collections.Generic.IGenericEnumerable<IMathElement> elements)

Creates a mathematical array and places specified elements in it

Parameters:

ParameterTypeDescription
elementscom.aspose.ms.System.Collections.Generic.IGenericEnumerable<com.aspose.slides.IMathElement>Elements to place in the array

getArguments()

public final IMathElementCollection getArguments()

The set of items of the array


Example:
 
 IMathArray mathArray = new MathArray(new MathematicalText("item1"));
 mathArray.getArguments().add(new MathematicalText("item2"));

Returns: IMathElementCollection

getBaseJustification()

public final int getBaseJustification()

Specifies alignment of the array relative to surrounding text Text outside of the array can be aligned with the bottom, top, or center of a array object. Default value: Center


Example:
 
 IMathArray mathArray = new MathArray(new MathematicalText("item1"));
 mathArray.setBaseJustification(MathVerticalAlignment.Top);

Returns: int

setBaseJustification(int value)

public final void setBaseJustification(int value)

Specifies alignment of the array relative to surrounding text Text outside of the array can be aligned with the bottom, top, or center of a array object. Default value: Center


Example:
 
 IMathArray mathArray = new MathArray(new MathematicalText("item1"));
 mathArray.setBaseJustification(MathVerticalAlignment.Top);

Parameters:

ParameterTypeDescription
valueint

getMaximumDistribution()

public final boolean getMaximumDistribution()

Maximum Distribution When true, the array is spaced to the maximum width of the containing element(page, column, cell, etc.).


Example:
 
 IMathArray mathArray = new MathArray(new MathematicalText("item1"));
 mathArray.setMaximumDistribution(true);

Returns: boolean

setMaximumDistribution(boolean value)

public final void setMaximumDistribution(boolean value)

Maximum Distribution When true, the array is spaced to the maximum width of the containing element(page, column, cell, etc.).


Example:
 
 IMathArray mathArray = new MathArray(new MathematicalText("item1"));
 mathArray.setMaximumDistribution(true);

Parameters:

ParameterTypeDescription
valueboolean

getObjectDistribution()

public final boolean getObjectDistribution()

Object Distribution When true, the contents of the array are spaced to the maximum width of the array object.


Example:
 
 IMathArray mathArray = new MathArray(new MathematicalText("item1"));
 mathArray.setObjectDistribution(true);

Returns: boolean

setObjectDistribution(boolean value)

public final void setObjectDistribution(boolean value)

Object Distribution When true, the contents of the array are spaced to the maximum width of the array object.


Example:
 
 IMathArray mathArray = new MathArray(new MathematicalText("item1"));
 mathArray.setObjectDistribution(true);

Parameters:

ParameterTypeDescription
valueboolean

getRowSpacingRule()

public final int getRowSpacingRule()

The type of vertical spacing between array elements Default: SingleLineGap


Example:
 
 IMathArray mathArray = new MathArray(new MathematicalText("item1"));
 mathArray.setRowSpacingRule(MathRowSpacingRule.OneAndAHalfLineGap);

Returns: int

setRowSpacingRule(int value)

public final void setRowSpacingRule(int value)

The type of vertical spacing between array elements Default: SingleLineGap


Example:
 
 IMathArray mathArray = new MathArray(new MathematicalText("item1"));
 mathArray.setRowSpacingRule(MathRowSpacingRule.OneAndAHalfLineGap);

Parameters:

ParameterTypeDescription
valueint

getRowSpacing()

public final long getRowSpacing()

Spacing between rows of an array It is used only when RowSpacingRule is set to 3 Exactly in which case the unit of measure is points or Multiple in which case the unit of measure is half-lines. Default: 0


Example:
 
 IMathArray mathArray = new MathArray(new MathematicalText("item1"));
 mathArray.setRowSpacingRule(MathRowSpacingRule.Exactly);
 mathArray.setRowSpacing(10);

Returns: long

setRowSpacing(long value)

public final void setRowSpacing(long value)

Spacing between rows of an array It is used only when RowSpacingRule is set to 3 Exactly in which case the unit of measure is points or Multiple in which case the unit of measure is half-lines. Default: 0


Example:
 
 IMathArray mathArray = new MathArray(new MathematicalText("item1"));
 mathArray.setRowSpacingRule(MathRowSpacingRule.Exactly);
 mathArray.setRowSpacing(10);

Parameters:

ParameterTypeDescription
valuelong

getChildren()

public final IMathElement[] getChildren()

Get children elements

Returns: com.aspose.slides.IMathElement[]