Inherited from System.Web.UI.WebControls.TableItemStyle. Encapsulates the styles of a WebCell.
For a list of all members of this type, see TableItemStyle Members.
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
System.Web.UI.WebControls.Style
System.Web.UI.WebControls.TableItemStyle
Aspose.Grid.Web.TableItemStyle
Thread Safety
Public static (Shared in Visual Basic) members of this type are
safe for multithreaded operations. Instance members are not guaranteed to be
thread-safe.
Example
[C#]
...
using System.Web.UI.WebControls;
...
...
WebWorksheets sheets = GridWeb1.WebWorksheets;
sheets.Clear();
WebWorksheet sheet = sheets[sheets.Add("demo1")];
WebCell cell = sheet.Cells[0,0];
cell.StringValue = "Demo Text";
cell.Style.Font.Size = new FontUnit("72pt");
cell.Style.Wrap = false;
cell.Style.BackColor = Color.Gray;
cell.Style.BorderStyle = BorderStyle.Solid;
cell.Style.BorderWidth = new Unit(1, UnitType.Pixel);
cell.Style.BorderColor = Color.Silver;
cell.Style.RightBorderStyle.BorderColor = Color.Black;
cell.Style.RightBorderStyle.BorderStyle = BorderStyle.Solid;
cell.Style.RightBorderStyle.BorderWidth = new Unit(1, UnitType.Pixel);
cell.Style.BottomBorderStyle.BorderColor = Color.Black;
cell.Style.BottomBorderStyle.BorderStyle = BorderStyle.Solid;
cell.Style.BottomBorderStyle.BorderWidth = new Unit(1, UnitType.Pixel);
[Visual Basic]
...
Imports System.Web.UI.WebControls
...
...
Dim sheets As WebWorksheets = GridWeb1.WebWorksheets
sheets.Clear()
Dim sheet As WebWorksheet = sheets(sheets.Add(__0__))
Dim cell As WebCell = sheet.Cells(0,0)
cell.StringValue = "Demo Text"
cell.Style.Font.Size = New FontUnit("72pt")
cell.Style.Wrap = False
cell.Style.BackColor = Color.Gray
cell.Style.BorderStyle = BorderStyle.Solid
cell.Style.BorderWidth = New Unit(1, UnitType.Pixel)
cell.Style.BorderColor = Color.Silver
cell.Style.RightBorderStyle.BorderColor = Color.Black
cell.Style.RightBorderStyle.BorderStyle = BorderStyle.Solid
cell.Style.RightBorderStyle.BorderWidth = New Unit(1, UnitType.Pixel)
cell.Style.BottomBorderStyle.BorderColor = Color.Black
cell.Style.BottomBorderStyle.BorderStyle = BorderStyle.Solid
cell.Style.BottomBorderStyle.BorderWidth = New Unit(1, UnitType.Pixel)
Requirements
Namespace: Aspose.Grid.Web
Assembly: Aspose.Grid.Web (in Aspose.Grid.Web.dll)
See Also
TableItemStyle Members | Aspose.Grid.Web Namespace