public class Display extends com.aspose.ms.lang.Struct<Display> implements com.groupdocs.editor.htmlcss.css.ICssDeclaration
Represents a "display" CSS declaration, which specifies the type of rendering box used for an element.
Modifier and Type | Field and Description |
---|---|
static Display |
Block
The element generates a block element box.
|
static Display |
Flex |
static Display |
Inherit |
static Display |
Initial |
static Display |
Inline
The element generates one or more 'inline' element boxes.
|
static Display |
InlineBlock
The element generates a block element box that will be flowed with
surrounding content as if it were a single inline box (behaving much like
a replaced element would)
|
static Display |
InlineFlex |
static Display |
InlineTable |
static Display |
ListItem
The element generates a block box for the content and a separate
list-item inline box.
|
static String |
Name |
static Display |
None
Turns off the display of an element (it has no effect on layout); all
descendant elements also have their display turned off.
|
static Display |
Table |
static Display |
TableCaption |
static Display |
TableCell |
static Display |
TableColumn |
static Display |
TableColumnGroup |
static Display |
TableFooterGroup |
static Display |
TableHeaderGroup |
static Display |
TableRow |
static Display |
TableRowGroup |
static Display |
Unset |
Constructor and Description |
---|
Display() |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
Display |
Clone() |
void |
CloneTo(Display that) |
boolean |
equals(Display other) |
static boolean |
equals(Display obj1,
Display obj2) |
boolean |
equals(com.groupdocs.editor.htmlcss.css.ICssDeclaration other) |
boolean |
equals(Object obj) |
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 |
isBasic()
Basic values (CSS 1)
|
boolean |
isDefault()
In implementing type should define, whether a current value is a default
value of a declaration, or not
|
boolean |
isExtended()
Extended values (CSS 2.1)
|
boolean |
isFlexboxModel()
Flexbox model values (CSS3)
|
boolean |
isGlobal()
In implementing type should define, whether a current value is a global
value of a declaration (inherit [initial, unset]), or not
|
boolean |
isTableModel()
Table model values (CSS 2.1)
|
static boolean |
op_Equality(Display first,
Display second)
Checks whether two "Display" values are equal
|
static boolean |
op_Inequality(Display first,
Display second)
Checks whether two "Display" 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 Display |
tryFromKeyword(String keyword)
Tries to recognize a specified keyword as a proper keyword value of the
'display' and return it on success or NULL on failure.
|
public static final Display Block
The element generates a block element box.
public static final Display Flex
public static final Display Inherit
public static final Display Initial
public static final Display Inline
The element generates one or more 'inline' element boxes. Default value.
public static final Display InlineBlock
The element generates a block element box that will be flowed with surrounding content as if it were a single inline box (behaving much like a replaced element would)
public static final Display InlineFlex
public static final Display InlineTable
public static final Display ListItem
The element generates a block box for the content and a separate list-item inline box.
public static final String Name
public static final Display None
Turns off the display of an element (it has no effect on layout); all descendant elements also have their display turned off. The document is rendered as though the element did not exist.
public static final Display Table
public static final Display TableCaption
public static final Display TableCell
public static final Display TableColumn
public static final Display TableColumnGroup
public static final Display TableFooterGroup
public static final Display TableHeaderGroup
public static final Display TableRow
public static final Display TableRowGroup
public static final Display Unset
public void CloneTo(Display that)
CloneTo
in class com.aspose.ms.System.ValueType<Display>
public final boolean equals(Display other)
public final boolean equals(com.groupdocs.editor.htmlcss.css.ICssDeclaration 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 isBasic()
Basic values (CSS 1)
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 isExtended()
Extended values (CSS 2.1)
public final boolean isFlexboxModel()
Flexbox model values (CSS3)
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 final boolean isTableModel()
Table model values (CSS 2.1)
public static boolean op_Equality(Display first, Display second)
Checks whether two "Display" values are equal
first
- second
- public static boolean op_Inequality(Display first, Display second)
Checks whether two "Display" 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.