MathAccent
Inheritance: java.lang.Object, com.aspose.slides.MathElementBase
All Implemented Interfaces: com.aspose.slides.IMathAccent, com.aspose.slides.IHasControlCharacterProperties
public final class MathAccent extends MathElementBase implements IMathAccent, IHasControlCharacterProperties
Specifies the accent function, consisting of a base and a combining diacritical mark Example: \ud835\udc4e\u0301
Example: IMathElement baseElement = new MathematicalText("x"); MathAccent accent = new MathAccent(baseElement, '~');
Constructors
Constructor | Description |
---|---|
MathAccent(IMathElement element) | Creates a math accent applying to a specified math element with the default accent character value |
MathAccent(IMathElement element, char accentCharacter) | Creates a math accent applying to a specified math element |
Methods
Method | Description |
---|---|
getBase() | The argument to which the accent was applied |
getCharacter() | Accent Character The value should be within the range of (U+0300\u2013U+036F) or(U+20D0\u2013U+20EF) Default value: Combining Circumflex Accent (U+0302) |
setCharacter(char value) | Accent Character The value should be within the range of (U+0300\u2013U+036F) or(U+20D0\u2013U+20EF) Default value: Combining Circumflex Accent (U+0302) |
getChildren() | Get children elements |
getControlCharacterProperties() | Control Character Properties |
MathAccent(IMathElement element)
public MathAccent(IMathElement element)
Creates a math accent applying to a specified math element with the default accent character value
Example: IMathElement baseElement = new MathematicalText("x"); MathAccent accent = new MathAccent(baseElement);
Parameters:
Parameter | Type | Description |
---|---|---|
element | IMathElement | a math element to apply accent |
MathAccent(IMathElement element, char accentCharacter)
public MathAccent(IMathElement element, char accentCharacter)
Creates a math accent applying to a specified math element
Example: IMathElement baseElement = new MathematicalText("x"); MathAccent accent = new MathAccent(baseElement, '~');
Parameters:
Parameter | Type | Description |
---|---|---|
element | IMathElement | math element to apply accent |
accentCharacter | char | accent character |
getBase()
public final IMathElement getBase()
The argument to which the accent was applied
Example: IMathAccent accent = new MathematicalText("x").accent('~'); IMathElement base = accent.getBase();
Returns: IMathElement
getCharacter()
public final char getCharacter()
Accent Character The value should be within the range of (U+0300\u2013U+036F) or(U+20D0\u2013U+20EF) Default value: Combining Circumflex Accent (U+0302)
Example: IMathAccent accent = new MathematicalText("x").accent('~'); char ch = accent.getCharacter();
Returns: char
setCharacter(char value)
public final void setCharacter(char value)
Accent Character The value should be within the range of (U+0300\u2013U+036F) or(U+20D0\u2013U+20EF) Default value: Combining Circumflex Accent (U+0302)
Example: IMathAccent accent = new MathematicalText("x").accent('~'); char ch = accent.getCharacter();
Parameters:
Parameter | Type | Description |
---|---|---|
value | char |
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