public class TextAlign extends com.aspose.ms.lang.Struct<TextAlign> implements com.groupdocs.editor.htmlcss.css.ICssDeclaration
Represents a "text-align" declaration, which describes how inline content like text is aligned in its parent block element.
Modifier and Type | Field and Description |
---|---|
static TextAlign |
Center |
static TextAlign |
End |
static TextAlign |
Inherit |
static TextAlign |
Initial |
static TextAlign |
Justify |
static TextAlign |
JustifyAll |
static TextAlign |
Left |
static TextAlign |
MatchParent |
static String |
Name |
static TextAlign |
Right |
static TextAlign |
Start
The same as 'left' if direction is 'left-to-right' or 'right' if
direction is 'right-to-left.
|
static TextAlign |
Unset |
Constructor and Description |
---|
TextAlign() |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
TextAlign |
Clone() |
void |
CloneTo(TextAlign that) |
boolean |
equals(com.groupdocs.editor.htmlcss.css.ICssDeclaration other) |
boolean |
equals(Object obj) |
boolean |
equals(TextAlign other) |
static boolean |
equals(TextAlign obj1,
TextAlign obj2) |
int |
getAnimationType()
All CSS properties have at least one animation type, which determines,
how they can be animated
|
boolean |
getInherited()
All CSS declarations are divided on inherited or non-inherited, what is
represented by this property
|
String |
getProperty()
In implementing type should return a property name as a string
|
String |
getValue()
In implementing type should return a value in a default string form,
without affecting serialization options
|
int |
hashCode() |
boolean |
isDefault()
In implementing type should define, whether a current value is a default
value of a declaration, or not
|
boolean |
isGlobal()
In implementing type should define, whether a current value is a global
value of a declaration (inherit [initial, unset]), or not
|
static boolean |
op_Equality(TextAlign first,
TextAlign second)
Checks whether two "TextAlign" values are equal
|
static boolean |
op_Inequality(TextAlign first,
TextAlign second)
Checks whether two "TextAlign" values are not equal
|
String |
serialize(com.groupdocs.editor.htmlcss.serialization.ISerializationOptions serializationOptions)
In implementing type returns a serialized representation of an object as
a string
|
void |
serialize(com.groupdocs.editor.htmlcss.serialization.ISerializationOptions serializationOptions,
com.aspose.ms.System.IO.TextWriter output)
In implementing type writes a serialized representation of an object to
the specified output TextWriter implementation
|
static TextAlign |
tryFromKeyword(String keyword)
Tries to recognize a specified keyword as a proper keyword value of the
'text-align' and return it on success or NULL on failure.
|
public static final TextAlign Center
public static final TextAlign End
public static final TextAlign Inherit
public static final TextAlign Initial
public static final TextAlign Justify
public static final TextAlign JustifyAll
public static final TextAlign Left
public static final TextAlign MatchParent
public static final String Name
public static final TextAlign Right
public static final TextAlign Start
The same as 'left' if direction is 'left-to-right' or 'right' if direction is 'right-to-left. Default value.
public static final TextAlign Unset
public TextAlign Clone()
Clone
in class com.aspose.ms.System.ValueType<TextAlign>
public void CloneTo(TextAlign that)
CloneTo
in class com.aspose.ms.System.ValueType<TextAlign>
public final boolean equals(com.groupdocs.editor.htmlcss.css.ICssDeclaration other)
public final boolean equals(TextAlign other)
public final int getAnimationType()
com.groupdocs.editor.htmlcss.css.ICssDeclaration
All CSS properties have at least one animation type, which determines, how they can be animated
getAnimationType
in interface com.groupdocs.editor.htmlcss.css.ICssDeclaration
public final boolean getInherited()
com.groupdocs.editor.htmlcss.css.ICssDeclaration
All CSS declarations are divided on inherited or non-inherited, what is represented by this property
getInherited
in interface com.groupdocs.editor.htmlcss.css.ICssDeclaration
public final String getProperty()
com.groupdocs.editor.htmlcss.css.ICssDeclaration
In implementing type should return a property name as a string
getProperty
in interface com.groupdocs.editor.htmlcss.css.ICssDeclaration
public final String getValue()
com.groupdocs.editor.htmlcss.css.ICssDeclaration
In implementing type should return a value in a default string form, without affecting serialization options
getValue
in interface com.groupdocs.editor.htmlcss.css.ICssDeclaration
public final boolean isDefault()
com.groupdocs.editor.htmlcss.css.ICssDeclaration
In implementing type should define, whether a current value is a default value of a declaration, or not
isDefault
in interface com.groupdocs.editor.htmlcss.css.ICssDeclaration
public final boolean isGlobal()
com.groupdocs.editor.htmlcss.css.ICssDeclaration
In implementing type should define, whether a current value is a global value of a declaration (inherit [initial, unset]), or not
isGlobal
in interface com.groupdocs.editor.htmlcss.css.ICssDeclaration
public static boolean op_Equality(TextAlign first, TextAlign second)
Checks whether two "TextAlign" values are equal
first
- second
- public static boolean op_Inequality(TextAlign first, TextAlign second)
Checks whether two "TextAlign" values are not equal
first
- second
- public final String serialize(com.groupdocs.editor.htmlcss.serialization.ISerializationOptions serializationOptions)
com.groupdocs.editor.htmlcss.serialization.ISerializable
In implementing type returns a serialized representation of an object as a string
serialize
in interface com.groupdocs.editor.htmlcss.serialization.ISerializable
serializationOptions
- Serialization options. Not all properties
should be used, but argument should not be nullpublic final void serialize(com.groupdocs.editor.htmlcss.serialization.ISerializationOptions serializationOptions, com.aspose.ms.System.IO.TextWriter output)
com.groupdocs.editor.htmlcss.serialization.ISerializable
In implementing type writes a serialized representation of an object to the specified output TextWriter implementation
serialize
in interface com.groupdocs.editor.htmlcss.serialization.ISerializable
serializationOptions
- Serialization options. Not all properties
should be used, but argument should not be nulloutput
- TextWriter instance, to which resultant text will be
written. Should not be null.