java.lang.Object
com.aspose.words.Underline
public class Underline
- extends java.lang.Object
Utility class containing constants.
Indicates type of the underline applied to a font.
Example:
Inserts a hyperlink into a document using DocumentBuilder.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.write("Please make sure to visit ");
// Specify font formatting for the hyperlink.
builder.getFont().setColor(Color.BLUE);
builder.getFont().setUnderline(Underline.SINGLE);
// Insert the link.
builder.insertHyperlink("Aspose Website", "http://www.aspose.com", false);
// Revert to default formatting.
builder.getFont().clearFormatting();
builder.write(" for more information.");
doc.save(getMyDir() + "DocumentBuilder.InsertHyperlink Out.doc");
NONE | |
public static final int NONE |
-
SINGLE | |
public static final int SINGLE |
-
WORDS | |
public static final int WORDS |
-
DOUBLE | |
public static final int DOUBLE |
-
DOTTED | |
public static final int DOTTED |
-
THICK | |
public static final int THICK |
-
DASH | |
public static final int DASH |
-
DASH_LONG | |
public static final int DASH_LONG |
-
DOT_DASH | |
public static final int DOT_DASH |
-
DOT_DOT_DASH | |
public static final int DOT_DOT_DASH |
-
WAVY | |
public static final int WAVY |
-
DOTTED_HEAVY | |
public static final int DOTTED_HEAVY |
-
DASH_HEAVY | |
public static final int DASH_HEAVY |
-
DASH_LONG_HEAVY | |
public static final int DASH_LONG_HEAVY |
-
DOT_DASH_HEAVY | |
public static final int DOT_DASH_HEAVY |
-
DOT_DOT_DASH_HEAVY | |
public static final int DOT_DOT_DASH_HEAVY |
-
WAVY_HEAVY | |
public static final int WAVY_HEAVY |
-
WAVY_DOUBLE | |
public static final int WAVY_DOUBLE |
-
See Also:
Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
Aspose.Words Support Forum - our preferred method of support.