TextBoxActiveXControl.ShowDropButtonTypeWhen
TextBoxActiveXControl.ShowDropButtonTypeWhen property
Specifies the symbol displayed on the drop button
public ShowDropButtonType ShowDropButtonTypeWhen { get; set; }
Examples
using System;
using Aspose.Cells;
using Aspose.Cells.Drawing;
using Aspose.Cells.Drawing.ActiveXControls;
namespace AsposeCellsExamples
{
public class TextBoxActiveXControlPropertyShowDropButtonTypeWhenDemo
{
public static void Run()
{
Workbook workbook = new Workbook();
Worksheet worksheet = workbook.Worksheets[0];
// Add an ActiveX TextBox control
Shape shape = worksheet.Shapes.AddActiveXControl(
ControlType.TextBox,
1, 1, 1, 1, 100, 50);
TextBoxActiveXControl textBox = (TextBoxActiveXControl)shape.ActiveXControl;
// Set the ShowDropButtonTypeWhen property
textBox.ShowDropButtonTypeWhen = ShowDropButtonType.Focus;
// Save the workbook
workbook.Save("TextBoxActiveXControlDemo.xlsx");
}
}
}
See Also
- enum ShowDropButtonType
- class TextBoxActiveXControl
- namespace Aspose.Cells.Drawing.ActiveXControls
- assembly Aspose.Cells