Spread Windows Forms 6.0 Product Documentation
SetCalculatorText Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > PercentCellType 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 PercentCellType
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.PercentCellType ctest = new FarPoint.Win.Spread.CellType.PercentCellType();
ctest.SetCalculatorText("Accept", "Cancel");
fpSpread1.Sheets[0].Cells[0, 0].CellType = ctest;
Visual BasicCopy Code
Dim ctest As New FarPoint.Win.Spread.CellType.PercentCellType
ctest.SetCalculatorText("Accept", "Cancel")
FpSpread1.Sheets(0).Cells(0, 0).CellType = ctest

Requirements

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

See Also

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