Spread Windows Forms 10.0 Product Documentation
OkText Property
Example 


Gets or sets a caption for the OK button.
Syntax
'Declaration
 
Public Property OkText As String
'Usage
 
Dim instance As SpreadMonthCalendar
Dim value As String
 
instance.OkText = value
 
value = instance.OkText
public string OkText {get; set;}
Example
This example sets the okay text.
//Press F4 on the cell to see the calendar
FarPoint.Win.Spread.CellType.DateTimeCellType dtest = new FarPoint.Win.Spread.CellType.DateTimeCellType();
dtest.SimpleEdit = true;
FarPoint.Win.Spread.CellType.SpreadMonthCalendar calendar = new FarPoint.Win.Spread.CellType.SpreadMonthCalendar();
calendar.CancelText = "C";
calendar.OkText = "O.K.";
calendar.DateDefault = System.DateTime.Now;
dtest.SubEditor = calendar;
fpSpread1.Sheets[0].Cells[0, 0].CellType = dtest;
'Press F4 on the cell to see the calendar
Dim dtest As New FarPoint.Win.Spread.CellType.DateTimeCellType()
dtest.SimpleEdit = True
Dim calendar As New FarPoint.Win.Spread.CellType.SpreadMonthCalendar()
calendar.CancelText = "C"
calendar.OkText = "O.K."
calendar.DateDefault = System.DateTime.Now
dtest.SubEditor = calendar
FpSpread1.Sheets(0).Cells(0, 0).CellType = dtest
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

SpreadMonthCalendar Class
SpreadMonthCalendar Members

 

 


Copyright © GrapeCity, inc. All rights reserved.