Width
Forms2OleControl.Width property
Gets or sets a width of the control in points.
public double Width { get; set; }
Examples
Shows how to set properties for ActiveX control.
Document doc = new Document(MyDir + "ActiveX controls.docx");
Shape shape = (Shape)doc.GetChild(NodeType.Shape, 0, true);
Forms2OleControl oleControl = (Forms2OleControl)shape.OleFormat.OleControl;
oleControl.ForeColor = Color.FromArgb(0x17, 0xE1, 0x35);
oleControl.BackColor = Color.FromArgb(0x33, 0x97, 0xF4);
oleControl.Height = 100.54;
oleControl.Width = 201.06;
See Also
- class Forms2OleControl
- namespace Aspose.Words.Drawing.Ole
- assembly Aspose.Words