Back to Devexpress

XlDataValidation.InputPrompt Property

corelibraries-devexpress-dot-export-dot-xl-dot-xldatavalidation-55d694f8.md

latest2.1 KB
Original Source

XlDataValidation.InputPrompt Property

Gets or sets the text for the input prompt message.

Namespace : DevExpress.Export.Xl

Assembly : DevExpress.Printing.v25.2.Core.dll

NuGet Package : DevExpress.Printing.Core

Declaration

csharp
public string InputPrompt { get; set; }
vb
Public Property InputPrompt As String

Property Value

TypeDescription
String

A String that is the message text.

|

Remarks

The input prompt message is displayed near the cell with the applied validation rule, as shown below:

Use the XlDataValidation.ShowInputMessage property to display or hide it. The XlDataValidation.PromptTitle property specifies the title bar text of the prompt message.

The code sample below shows how to display an input message:

csharp
// Display the input message.
validation.InputPrompt = "Please enter a whole number between 600 and 2000";
validation.PromptTitle = "Salary";
validation.ShowInputMessage = true;
vb
' Display the input message.
validation.InputPrompt = "Please enter a whole number between 600 and 2000"
validation.PromptTitle = "Salary"
validation.ShowInputMessage = True

See Also

XlDataValidation Class

XlDataValidation Members

DevExpress.Export.Xl Namespace