GridTableItemStyle

Inheritance: java.lang.Object, com.aspose.gridweb.WebStyle, com.aspose.gridweb.WebTableItemStyle

public class GridTableItemStyle extends WebTableItemStyle

Inherited from System.Web.UI.WebControls.TableItemStyle. Encapsulates the styles of a WebCell.

Example

Constructors

ConstructorDescription
GridTableItemStyle()Default constructor.

Methods

MethodDescription
copyFrom(WebStyle s)Copies from another style object.
equals(Object arg0)
getBackColor()Gets the BackColor in the style
getBackImageAttributes()Background image attributes.
getBackImageUrl()Background image url.
getBorderColor()Gets the BorderColor in the style
getBorderStyle()Gets the BorderStyle in the style
getBorderWidth()Gets the BorderWidth in the style
getBottomBorderStyle()Specifies the style of the cell’s bottom border.
getClass()
getCssClass()Gets the CssClass in the style
getCustom()Gets the custom format, null or empty string means no custom format.
getFont()Gets the Font in the style
getForeColor()Gets the ForeColor in the style
getHeight()Gets the Height in the style
getHorizontalAlign()Gets the HorizontalAlign in the style
getIndentLevel()Gets indent level.
getLeftBorderStyle()Specifies the style of the cell’s left border.
getNumberType()Gets the display format of numbers and dates.
getQuotePrefix()Indicates whether the cell’s value starts with single quote mark.
getRightBorderStyle()Specifies the style of the cell’s right border.
getRotationAngle()Visual filters.
getTopBorderStyle()Specifies the style of the cell’s top border.
getVerticalAlign()Gets the VerticalAlign in the style
getWidth()Gets the Width in the style
getWrap()Gets the Wrap in the style
hashCode()Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
isLocked()Gets a value indicating whether a cell can be modified or not when its worksheet is protected.
mergeWith(WebStyle s)Merges with another style object.
notify()
notifyAll()
setBackColor(Color value)Sets the BackColor in the style
setBackImageAttributes(String value)Background image attributes.
setBackImageUrl(String value)Background image url.
setBorderColor(Color value)Sets the BorderColor in the style
setBorderStyle(int value)Sets the BorderStyle in the style
setBorderWidth(Unit value)Sets the BorderWidth in the style
setBottomBorderStyle(WebBorderStyle value)Specifies the style of the cell’s bottom border.
setCssClass(String value)Sets the CssClass in the style
setCustom(String value)Sets the custom format, null or empty string means no custom format.
setForeColor(Color value)Sets the ForeColor in the style
setHeight(Unit value)Sets the Height in the style
setHorizontalAlign(int value)Sets the HorizontalAlign in the style
setIndentLevel(int value)Sets indent level.
setLeftBorderStyle(WebBorderStyle value)Specifies the style of the cell’s left border.
setLocked(boolean value)Sets a value indicating whether a cell can be modified or not when its worksheet is protected.
setNumberType(int value)Sets the display format of numbers and dates.
setQuotePrefix(boolean value)Indicates whether the cell’s value starts with single quote mark.
setRightBorderStyle(WebBorderStyle value)Specifies the style of the cell’s right border.
setRotationAngle(short value)Visual filters.
setTopBorderStyle(WebBorderStyle value)Specifies the style of the cell’s top border.
setVerticalAlign(int value)Sets the VerticalAlign in the style
setWidth(Unit value)Sets the Width in the style
setWrap(boolean value)Sets the Wrap in the style
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

GridTableItemStyle()

public GridTableItemStyle()

Default constructor.

copyFrom(WebStyle s)

public void copyFrom(WebStyle s)

Copies from another style object.

Parameters:

ParameterTypeDescription
sWebStyleanother style object

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getBackColor()

public Color getBackColor()

Gets the BackColor in the style

Returns: Color

getBackImageAttributes()

public String getBackImageAttributes()

Background image attributes.

Returns: java.lang.String

getBackImageUrl()

public String getBackImageUrl()

Background image url.

Returns: java.lang.String

getBorderColor()

public Color getBorderColor()

Gets the BorderColor in the style

Returns: Color

getBorderStyle()

public int getBorderStyle()

Gets the BorderStyle in the style

See BorderStyle.

Returns: int

getBorderWidth()

public Unit getBorderWidth()

Gets the BorderWidth in the style

Returns: Unit

getBottomBorderStyle()

public WebBorderStyle getBottomBorderStyle()

Specifies the style of the cell’s bottom border.

Returns: WebBorderStyle

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getCssClass()

public String getCssClass()

Gets the CssClass in the style

Returns: java.lang.String

getCustom()

public String getCustom()

Gets the custom format, null or empty string means no custom format.

Returns: java.lang.String

getFont()

public FontInfo getFont()

Gets the Font in the style

Returns: FontInfo

getForeColor()

public Color getForeColor()

Gets the ForeColor in the style

Returns: Color

getHeight()

public Unit getHeight()

Gets the Height in the style

Returns: Unit

getHorizontalAlign()

public int getHorizontalAlign()

Gets the HorizontalAlign in the style

See HorizontalAlign.

Returns: int

getIndentLevel()

public int getIndentLevel()

Gets indent level.

Remarks

Returns: int

getLeftBorderStyle()

public WebBorderStyle getLeftBorderStyle()

Specifies the style of the cell’s left border.

Returns: WebBorderStyle

getNumberType()

public int getNumberType()

Gets the display format of numbers and dates. The formatting patterns are different for different regions.

Remarks

For example, the formatting patterns represented by numbers for en_US region:

ValueTypeFormat String
0GeneralGeneral
1Decimal0
2Decimal0.00
3Decimal#,##0
4Decimal#,##0.00
5Currency$#,##0_);($#,##0)
6Currency$#,##0_);[Red](../$#,##0)
7Currency$#,##0.00_);($#,##0.00)
8Currency$#,##0.00_);[Red](../$#,##0.00)
9Percentage0%
10Percentage0.00%
11Scientific0.00E+00
12Fraction# ?/?
13Fraction# ??/??
14Datem/d/yyyy
15Dated-mmm-yy
16Dated-mmm
17Datemmm-yy
18Timeh:mm AM/PM
19Timeh:mm:ss AM/PM
20Timeh:mm
21Timeh:mm:ss
22Timem/d/yyyy h:mm
37Accounting#,##0_);(#,##0)
38Accounting#,##0_);[Red](../#,##0)
39Accounting#,##0.00_);(#,##0.00)
40Accounting#,##0.00_);[Red](../#,##0.00)
41Accounting_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)
42Currency_($* #,##0_);_($* (#,##0);_($* "-"_);_(@_)
43Accounting_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)
44Currency_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)
45Timemm:ss
46Time[h]:mm:ss
47Timemm:ss.0
48Scientific##0.0E+0
49Text@

Returns: int

getQuotePrefix()

public boolean getQuotePrefix()

Indicates whether the cell’s value starts with single quote mark.

Returns: boolean

getRightBorderStyle()

public WebBorderStyle getRightBorderStyle()

Specifies the style of the cell’s right border.

Returns: WebBorderStyle

getRotationAngle()

public short getRotationAngle()

Visual filters.

Returns: short

getTopBorderStyle()

public WebBorderStyle getTopBorderStyle()

Specifies the style of the cell’s top border.

Returns: WebBorderStyle

getVerticalAlign()

public int getVerticalAlign()

Gets the VerticalAlign in the style

See VerticalAlign.

Returns: int

getWidth()

public Unit getWidth()

Gets the Width in the style

Returns: Unit

getWrap()

public boolean getWrap()

Gets the Wrap in the style

Returns: boolean

hashCode()

public int hashCode()

Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.

Returns: int - A hash code for the current Style.

isLocked()

public boolean isLocked()

Gets a value indicating whether a cell can be modified or not when its worksheet is protected. When its worksheet is protected and IsLocked is true, the cell can not be edit. When its worksheet is protected and IsLocked is false, the cell can be edit.

Returns: boolean

mergeWith(WebStyle s)

public void mergeWith(WebStyle s)

Merges with another style object.

Parameters:

ParameterTypeDescription
sWebStyleanother style object

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setBackColor(Color value)

public void setBackColor(Color value)

Sets the BackColor in the style

Parameters:

ParameterTypeDescription
valueColor

setBackImageAttributes(String value)

public void setBackImageAttributes(String value)

Background image attributes.

Parameters:

ParameterTypeDescription
valuejava.lang.String

setBackImageUrl(String value)

public void setBackImageUrl(String value)

Background image url.

Parameters:

ParameterTypeDescription
valuejava.lang.String

setBorderColor(Color value)

public void setBorderColor(Color value)

Sets the BorderColor in the style

Parameters:

ParameterTypeDescription
valueColor

setBorderStyle(int value)

public void setBorderStyle(int value)

Sets the BorderStyle in the style

See BorderStyle.

Parameters:

ParameterTypeDescription
valueint

setBorderWidth(Unit value)

public void setBorderWidth(Unit value)

Sets the BorderWidth in the style

Parameters:

ParameterTypeDescription
valueUnit

setBottomBorderStyle(WebBorderStyle value)

public void setBottomBorderStyle(WebBorderStyle value)

Specifies the style of the cell’s bottom border.

Parameters:

ParameterTypeDescription
valueWebBorderStyle

setCssClass(String value)

public void setCssClass(String value)

Sets the CssClass in the style

Parameters:

ParameterTypeDescription
valuejava.lang.String

setCustom(String value)

public void setCustom(String value)

Sets the custom format, null or empty string means no custom format.

Parameters:

ParameterTypeDescription
valuejava.lang.String

setForeColor(Color value)

public void setForeColor(Color value)

Sets the ForeColor in the style

Parameters:

ParameterTypeDescription
valueColor

setHeight(Unit value)

public void setHeight(Unit value)

Sets the Height in the style

Parameters:

ParameterTypeDescription
valueUnit

setHorizontalAlign(int value)

public void setHorizontalAlign(int value)

Sets the HorizontalAlign in the style

See HorizontalAlign.

Parameters:

ParameterTypeDescription
valueint

setIndentLevel(int value)

public void setIndentLevel(int value)

Sets indent level.

Remarks

Parameters:

ParameterTypeDescription
valueint

setLeftBorderStyle(WebBorderStyle value)

public void setLeftBorderStyle(WebBorderStyle value)

Specifies the style of the cell’s left border.

Parameters:

ParameterTypeDescription
valueWebBorderStyle

setLocked(boolean value)

public void setLocked(boolean value)

Sets a value indicating whether a cell can be modified or not when its worksheet is protected. When its worksheet is protected and IsLocked is true, the cell can not be edit. When its worksheet is protected and IsLocked is false, the cell can be edit.

Parameters:

ParameterTypeDescription
valueboolean

setNumberType(int value)

public void setNumberType(int value)

Sets the display format of numbers and dates. The formatting patterns are different for different regions.

Remarks

For example, the formatting patterns represented by numbers for en_US region:

ValueTypeFormat String
0GeneralGeneral
1Decimal0
2Decimal0.00
3Decimal#,##0
4Decimal#,##0.00
5Currency$#,##0_);($#,##0)
6Currency$#,##0_);[Red](../$#,##0)
7Currency$#,##0.00_);($#,##0.00)
8Currency$#,##0.00_);[Red](../$#,##0.00)
9Percentage0%
10Percentage0.00%
11Scientific0.00E+00
12Fraction# ?/?
13Fraction# ??/??
14Datem/d/yyyy
15Dated-mmm-yy
16Dated-mmm
17Datemmm-yy
18Timeh:mm AM/PM
19Timeh:mm:ss AM/PM
20Timeh:mm
21Timeh:mm:ss
22Timem/d/yyyy h:mm
37Accounting#,##0_);(#,##0)
38Accounting#,##0_);[Red](../#,##0)
39Accounting#,##0.00_);(#,##0.00)
40Accounting#,##0.00_);[Red](../#,##0.00)
41Accounting_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)
42Currency_($* #,##0_);_($* (#,##0);_($* "-"_);_(@_)
43Accounting_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)
44Currency_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)
45Timemm:ss
46Time[h]:mm:ss
47Timemm:ss.0
48Scientific##0.0E+0
49Text@

Parameters:

ParameterTypeDescription
valueint

setQuotePrefix(boolean value)

public void setQuotePrefix(boolean value)

Indicates whether the cell’s value starts with single quote mark.

Parameters:

ParameterTypeDescription
valueboolean

setRightBorderStyle(WebBorderStyle value)

public void setRightBorderStyle(WebBorderStyle value)

Specifies the style of the cell’s right border.

Parameters:

ParameterTypeDescription
valueWebBorderStyle

setRotationAngle(short value)

public void setRotationAngle(short value)

Visual filters.

Parameters:

ParameterTypeDescription
valueshort

setTopBorderStyle(WebBorderStyle value)

public void setTopBorderStyle(WebBorderStyle value)

Specifies the style of the cell’s top border.

Parameters:

ParameterTypeDescription
valueWebBorderStyle

setVerticalAlign(int value)

public void setVerticalAlign(int value)

Sets the VerticalAlign in the style

See VerticalAlign.

Parameters:

ParameterTypeDescription
valueint

setWidth(Unit value)

public void setWidth(Unit value)

Sets the Width in the style

Parameters:

ParameterTypeDescription
valueUnit

setWrap(boolean value)

public void setWrap(boolean value)

Sets the Wrap in the style

Parameters:

ParameterTypeDescription
valueboolean

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int