Spread Windows Forms 7.0 Product Documentation
SetCalculatorText Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > CurrencyCellType Class : SetCalculatorText Method


okText
Text for the OK button
cancelText
Text for the Cancel button

Glossary Item Box

Sets the text for the pop-up calculator.

Syntax

Visual Basic (Declaration) 
Public Sub SetCalculatorText( _
   ByVal okText As String, _
   ByVal cancelText As String _
) 
Visual Basic (Usage)Copy Code
Dim instance As CurrencyCellType
Dim okText As String
Dim cancelText As String
 
instance.SetCalculatorText(okText, cancelText)
C# 
public void SetCalculatorText( 
   string okText,
   string cancelText
)

Parameters

okText
Text for the OK button
cancelText
Text for the Cancel button

Example

This example sets the text for the buttons.
C#Copy Code
FarPoint.Win.Spread.CellType.CurrencyCellType ctest = new FarPoint.Win.Spread.CellType.CurrencyCellType();
ctest.SetCalculatorText("Accept", "Cancel");
fpSpread1.Sheets[0].Cells[0, 0].CellType = ctest;
Visual BasicCopy Code
Dim ctest As New FarPoint.Win.Spread.CellType.CurrencyCellType
ctest.SetCalculatorText("Accept", "Cancel")
FpSpread1.Sheets(0).Cells(0, 0).CellType = ctest

Requirements

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

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.