MathBar

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

All Implemented Interfaces: com.aspose.slides.IMathBar, com.aspose.slides.IHasControlCharacterProperties

public final class MathBar extends MathElementBase implements IMathBar, IHasControlCharacterProperties

Specifies the bar function, consisting of a base argument and an overbar or underbar


Example:
 
 MathBar mathBar = new MathBar(new MathematicalText("x"));

Constructors

ConstructorDescription
MathBar(IMathElement element)Initializes MathBar with overbar (Top position)
MathBar(IMathElement element, int position)Initializes MathBar with specified position

Methods

MethodDescription
getBase()Base argument
getPosition()Position of the bar line.
setPosition(int value)Position of the bar line.
getChildren()Get children elements
getControlCharacterProperties()Control Character Properties

MathBar(IMathElement element)

public MathBar(IMathElement element)

Initializes MathBar with overbar (Top position)


Example:
 
 MathBar mathBar = new MathBar(new MathematicalText("x"));

Parameters:

ParameterTypeDescription
elementIMathElementThe base element to which the bar is applied

MathBar(IMathElement element, int position)

public MathBar(IMathElement element, int position)

Initializes MathBar with specified position


Example:
 
 MathBar mathBar = new MathBar(new MathematicalText("x"), MathTopBotPositions.Bottom);

Parameters:

ParameterTypeDescription
elementIMathElementThe base element to which the bar is applied
positionintPosition of the bar line.

getBase()

public final IMathElement getBase()

Base argument


Example:
 
 MathBar mathBar = new MathBar(new MathematicalText("x"));
 IMathElement base = mathBar.getBase();

Returns: IMathElement

getPosition()

public final int getPosition()

Position of the bar line. Default: Top


Example:
 
 MathBar mathBar = new MathBar(new MathematicalText("x"));
 mathBar.setPosition(MathTopBotPositions.Bottom);

Returns: int

setPosition(int value)

public final void setPosition(int value)

Position of the bar line. Default: Top


Example:
 
 MathBar mathBar = new MathBar(new MathematicalText("x"));
 mathBar.setPosition(MathTopBotPositions.Bottom);

Parameters:

ParameterTypeDescription
valueint

getChildren()

public final IMathElement[] getChildren()

Get children elements

Returns: com.aspose.slides.IMathElement[]

getControlCharacterProperties()

public final OmmlControlCharacterPPTXUnsupportedProps getControlCharacterProperties()

Control Character Properties

Returns: com.aspose.slides.OmmlControlCharacterPPTXUnsupportedProps