Gets or sets the style for the message row.
Syntax
Visual Basic (Declaration) | |
---|
Public Property MessageRowStyle As Appearance |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As SheetView
Dim value As Appearance
instance.MessageRowStyle = value
value = instance.MessageRowStyle |
Property Value
Appearance object with the style settings for the message
Remarks
Example
This example creates a SheetView object and assigns it to the active sheet. When used in a browser below IE5.5 or, as in this case, EnabledClientScript is set to false, when the user enters invalid data in the first cell, a message row appears with the message "Use Numbers". The foreground and background color properties are set using the SheetView object.
C# | Copy Code |
---|
FarPoint.Web.Spread.SheetView sv = FpSpread1.ActiveSheetView;
sv.Cells[0, 0].CellType = new FarPoint.Web.Spread.IntegerCellType("Use Numbers");
FpSpread1.EnableClientScript = false;
sv.MessageRowStyle.BackColor = Color.Teal;
sv.MessageRowStyle.ForeColor = Color.DarkBlue;
|
Visual Basic | Copy Code |
---|
Dim sv As FarPoint.Web.Spread.SheetView
sv = FpSpread1.ActiveSheetView
sv.Cells(0, 0).CellType = New FarPoint.Web.Spread.IntegerCellType("Use Numbers")
FpSpread1.EnableClientScript = False
sv.MessageRowStyle.BackColor = Color.Teal
sv.MessageRowStyle.ForeColor = Color.DarkBlue |
Requirements
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
See Also