ZennoLab Assemblies Documentation
ZennoTableStyle Class
Members  Example 
Contains information about excel cell style.
Object Model
ZennoTableStyle Class
Syntax
public class ZennoTableStyle : System.MarshalByRefObject 
Remarks
This class can be used in action OwnCode (C# or PHP) of ProjectMaker.
Example
The following example uses method SetCellStyle of "table" for setting cell style.
get table by name "MyTable"
var table = project.Tables["MyTable"];
// create style
var style = new ZennoTableStyle
{
    HorizontalAlignment = InterfacesLibrary.Enums.Table.ExcelStyle.HorizontalAlignment.Right,
    VerticalAlignment = InterfacesLibrary.Enums.Table.ExcelStyle.VerticalAlignment.Bottom,
    Font = new Font("Comic Sans MS", 20, FontStyle.Italic | FontStyle.Underline, GraphicsUnit.Point),
    FontColor = Color.Red
};
style.SetBorder(InterfacesLibrary.Enums.Table.ExcelStyle.Borders.Right | InterfacesLibrary.Enums.Table.ExcelStyle.Borders.DiagonalUp, Color.Blue, InterfacesLibrary.Enums.Table.ExcelStyle.LineStyle.DashDot);
// set style
table.SetRowStyle(0, style);
Inheritance Hierarchy

System.Object
   System.MarshalByRefObject
      ZennoLab.InterfacesLibrary.ProjectModel.ZennoTableStyle

Requirements

Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.

See Also

Reference

ZennoTableStyle Members
ZennoLab.InterfacesLibrary.ProjectModel Namespace

Send Feedback