EmphasisMark

Inheritance: java.lang.Object

public class EmphasisMark

Specifies possible types of emphasis mark.

Examples:

Shows how to add additional character rendered above/below the glyph-character.


 DocumentBuilder builder = new DocumentBuilder();

 // Possible types of emphasis mark:
 // https://apireference.aspose.com/words/net/aspose.words/emphasismark
 builder.getFont().setEmphasisMark(emphasisMark);

 builder.write("Emphasis text");
 builder.writeln();
 builder.getFont().clearFormatting();
 builder.write("Simple text");

 builder.getDocument().save(getArtifactsDir() + "Fonts.SetEmphasisMark.docx");
 

Fields

FieldDescription
NONENo emphasis mark.
OVER_COMMAEmphasis mark is a comma character displayed above text.
OVER_SOLID_CIRCLEEmphasis mark is a solid black circle displayed above text.
OVER_WHITE_CIRCLEEmphasis mark is an empty white circle displayed above text.
UNDER_SOLID_CIRCLEEmphasis mark is a solid black circle displayed below text.
length

Methods

MethodDescription
fromName(String emphasisMarkName)
getName(int emphasisMark)
getValues()
toString(int emphasisMark)

NONE

public static int NONE

No emphasis mark.

OVER_COMMA

public static int OVER_COMMA

Emphasis mark is a comma character displayed above text.

OVER_SOLID_CIRCLE

public static int OVER_SOLID_CIRCLE

Emphasis mark is a solid black circle displayed above text.

OVER_WHITE_CIRCLE

public static int OVER_WHITE_CIRCLE

Emphasis mark is an empty white circle displayed above text.

UNDER_SOLID_CIRCLE

public static int UNDER_SOLID_CIRCLE

Emphasis mark is a solid black circle displayed below text.

length

public static int length

fromName(String emphasisMarkName)

public static int fromName(String emphasisMarkName)

Parameters:

ParameterTypeDescription
emphasisMarkNamejava.lang.String

Returns: int

getName(int emphasisMark)

public static String getName(int emphasisMark)

Parameters:

ParameterTypeDescription
emphasisMarkint

Returns: java.lang.String

getValues()

public static int[] getValues()

Returns: int[]

toString(int emphasisMark)

public static String toString(int emphasisMark)

Parameters:

ParameterTypeDescription
emphasisMarkint

Returns: java.lang.String