CommandButtonActiveXControl.PicturePosition
CommandButtonActiveXControl.PicturePosition property
Gets and set the location of the control’s picture relative to its caption.
public ControlPicturePositionType PicturePosition { get; set; }
Examples
using System;
using Aspose.Cells;
using Aspose.Cells.Drawing;
using Aspose.Cells.Drawing.ActiveXControls;
namespace AsposeCellsExamples
{
public class CommandButtonActiveXControlPropertyPicturePositionDemo
{
public static void Run()
{
Workbook workbook = new Workbook();
Worksheet worksheet = workbook.Worksheets[0];
var shape = worksheet.Shapes.AddActiveXControl(ControlType.CommandButton, 2, 2, 2, 2, 100, 30);
CommandButtonActiveXControl commandButton = (CommandButtonActiveXControl)shape.ActiveXControl;
commandButton.Caption = "Click Me";
commandButton.PicturePosition = ControlPicturePositionType.Center;
workbook.Save("CommandButtonWithPicturePosition.xlsx");
}
}
}
See Also
- enum ControlPicturePositionType
- class CommandButtonActiveXControl
- namespace Aspose.Cells.Drawing.ActiveXControls
- assembly Aspose.Cells