Visual Basic (Declaration) | |
---|---|
Public Function New() |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As New TitleInfo() |
C# | |
---|---|
public TitleInfo() |
This example creates a TitleInfo object.
C# | Copy Code |
---|---|
FarPoint.Win.Spread.TitleInfo test = new FarPoint.Win.Spread.TitleInfo(); private void Form1_Load(object sender, EventArgs e) { test.Text = "Testing"; test.Visible = true; test.HorizontalAlign = FarPoint.Win.Spread.CellHorizontalAlignment.Center; test.BackColor = Color.Beige; test.ForeColor = Color.Black; test.VerticalAlign = FarPoint.Win.Spread.CellVerticalAlignment.Center; fpSpread1.TitleInfo = test; } private void button1_Click(object sender, EventArgs e) { test.Reset(); } |
Visual Basic | Copy Code |
---|---|
Dim test As New FarPoint.Win.Spread.TitleInfo() Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load test.Text = "Testing" test.Visible = True test.HorizontalAlign = FarPoint.Win.Spread.CellHorizontalAlignment.Center test.BackColor = Color.Beige test.ForeColor = Color.Black test.VerticalAlign = FarPoint.Win.Spread.CellVerticalAlignment.Center FpSpread1.TitleInfo = test End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click test.Reset() End Sub |
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2