MathGroupingCharacter

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

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

public final class MathGroupingCharacter extends MathElementBase implements IMathGroupingCharacter, IHasControlCharacterProperties

Specifies a grouping symbol above or below an expression, usually to highlight the relationship between elements


Example:
 
 MathGroupingCharacter groupingCharacter = new MathGroupingCharacter(new MathematicalText("abc"));

Constructors

ConstructorDescription
MathGroupingCharacter(IMathElement element)Initializes a new instance of the MathGroupingCharacter class with the default grouping character U+23DF (BOTTOM CURLY BRACKET)
MathGroupingCharacter(IMathElement element, char character, int position, int verticalJustification)Initializes a new instance of the MathGroupingCharacter class.

Methods

MethodDescription
getBase()Base argument
getCharacter()Grouping Character Default value: U+23DF (BOTTOM CURLY BRACKET)
setCharacter(char value)Grouping Character Default value: U+23DF (BOTTOM CURLY BRACKET)
getPosition()Position of grouping character.
setPosition(int value)Position of grouping character.
getVerticalJustification()Vertical justification of group character.
setVerticalJustification(int value)Vertical justification of group character.
getChildren()Get children elements
getControlCharacterProperties()Control Character Properties

MathGroupingCharacter(IMathElement element)

public MathGroupingCharacter(IMathElement element)

Initializes a new instance of the MathGroupingCharacter class with the default grouping character U+23DF (BOTTOM CURLY BRACKET)


Example:
 
 MathGroupingCharacter groupingCharacter = new MathGroupingCharacter(new MathematicalText("abc"));

Parameters:

ParameterTypeDescription
elementIMathElementThe base element to which the bar is applied

MathGroupingCharacter(IMathElement element, char character, int position, int verticalJustification)

public MathGroupingCharacter(IMathElement element, char character, int position, int verticalJustification)

Initializes a new instance of the MathGroupingCharacter class.


Example:
 
 MathGroupingCharacter groupingCharacter = new MathGroupingCharacter(new MathematicalText("abc"), '_', MathTopBotPositions.Top, MathTopBotPositions.Bottom);

Parameters:

ParameterTypeDescription
elementIMathElementThe base element to which the bar is applied
charactercharGrouping Character
positionintPosition of grouping character
verticalJustificationintVertical justification of group character

getBase()

public final IMathElement getBase()

Base argument


Example:
 
 MathGroupingCharacter groupingCharacter = new MathGroupingCharacter(new MathematicalText("abc"));
 IMathElement baseArg = groupingCharacter.getBase();

Returns: IMathElement

getCharacter()

public final char getCharacter()

Grouping Character Default value: U+23DF (BOTTOM CURLY BRACKET)


Example:
 
 MathGroupingCharacter groupingCharacter = new MathGroupingCharacter(new MathematicalText("abc"));
 groupingCharacter.setCharacter('\u23dd'); // Bottom Parenthesis

Returns: char

setCharacter(char value)

public final void setCharacter(char value)

Grouping Character Default value: U+23DF (BOTTOM CURLY BRACKET)


Example:
 
 MathGroupingCharacter groupingCharacter = new MathGroupingCharacter(new MathematicalText("abc"));
 groupingCharacter.setCharacter('\u23dd'); // Bottom Parenthesis

Parameters:

ParameterTypeDescription
valuechar

getPosition()

public final int getPosition()

Position of grouping character. Default: Bottom


Example:
 
 MathGroupingCharacter groupingCharacter = new MathGroupingCharacter(new MathematicalText("abc"));
 groupingCharacter.setPosition(MathTopBotPositions.Top);

Returns: int

setPosition(int value)

public final void setPosition(int value)

Position of grouping character. Default: Bottom


Example:
 
 MathGroupingCharacter groupingCharacter = new MathGroupingCharacter(new MathematicalText("abc"));
 groupingCharacter.setPosition(MathTopBotPositions.Top);

Parameters:

ParameterTypeDescription
valueint

getVerticalJustification()

public final int getVerticalJustification()

Vertical justification of group character. Specifies the alignment of the object with respect to the baseline. For example, when the group character is above the object, VerticalJustification of Top signifies that the top of the object falls on the baseline; when VerticalJustification is set to Bottom, the bottom of the object is on the baseline Default: Bottom for Position=Top, and Top for Position=Bottom


Example:
 
 MathGroupingCharacter groupingCharacter = new MathGroupingCharacter(new MathematicalText("abc"));
 groupingCharacter.setVerticalJustification(MathTopBotPositions.Top);

Returns: int

setVerticalJustification(int value)

public final void setVerticalJustification(int value)

Vertical justification of group character. Specifies the alignment of the object with respect to the baseline. For example, when the group character is above the object, VerticalJustification of Top signifies that the top of the object falls on the baseline; when VerticalJustification is set to Bottom, the bottom of the object is on the baseline Default: Bottom for Position=Top, and Top for Position=Bottom


Example:
 
 MathGroupingCharacter groupingCharacter = new MathGroupingCharacter(new MathematicalText("abc"));
 groupingCharacter.setVerticalJustification(MathTopBotPositions.Top);

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