FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > AppearanceProperty Class : ToString Method |
'Declaration Public Overrides Function ToString() As String
'Usage Dim instance As AppearanceProperty Dim value As String value = instance.ToString()
public override string ToString()
FarPoint.Web.Spread.Appearance appr = new FarPoint.Web.Spread.Appearance(); FarPoint.Web.Spread.Cell acell; appr.BackColor=Color.Red; appr.ForeColor=Color.White; appr.Font.Bold=True; appr.HorizontalAlign=HorizontalAlign.Right; appr.VerticalAlign=VerticalAlign.Top; acell=FpSpread1.Cells[0,0]; acell.BackColor=appr.BackColor; acell.ForeColor=appr.ForeColor; acell.Font.Bold=appr.Font.Bold; acell.HorizontalAlign=appr.HorizontalAlign; acell.VerticalAlign=appr.VerticalAlign; FpSpread1.ActiveSheetView.SetValue(0,0,"AppearanceTest"); FpSpread1.Columns[0].Width=150; FpSpread1.Rows[0].Height=60; TextBox1.Text=FarPoint.Web.Spread.AppearanceProperty.BackColor.ToString();
Dim appr As New FarPoint.Web.Spread.Appearance() Dim acell As FarPoint.Web.Spread.Cell Dim prop As FarPoint.Web.Spread.AppearanceProperty appr.BackColor=Color.Red appr.ForeColor=Color.White appr.Font.Bold=True appr.HorizontalAlign=HorizontalAlign.Right appr.VerticalAlign=VerticalAlign.Top acell=FpSpread1.Cells(0,0) acell.BackColor=appr1.BackColor acell.ForeColor=appr1.ForeColor acell.Font.Bold=appr1.Font.Bold acell.HorizontalAlign=appr1.HorizontalAlign acell.VerticalAlign=appr1.VerticalAlign FpSpread1.ActiveSheetView.SetValue(0,0,"AppearancePropertyTest") FpSpread1.Columns(0).Width=150 FpSpread1.Rows(0).Height=60 TextBox1.Text=prop.BackColor.ToString
Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6