ZennoLab Assemblies Documentation
ZennoTableStyle.Border Class
Members  Example 
Contains information about excel cell border style.
Object Model
ZennoTableStyle.Border Class
Syntax
public class ZennoTableStyle.Border 
Remarks
This class can be used in action OwnCode (C# or PHP) of ProjectMaker.
Example
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
   ZennoLab.InterfacesLibrary.ProjectModel.ZennoTableStyle.Border

Requirements

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

See Also

Reference

ZennoTableStyle.Border Members
ZennoLab.InterfacesLibrary.ProjectModel Namespace

Send Feedback