ForeColor
Forms2OleControl.ForeColor property
Gets or sets a foreground color of the control. The default value depends on a type of the control.
public Color ForeColor { 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