Class Control
Represents an ActiveX control embedded on a slide.
Maps to the OOXML ctrl part within the slide's control
relationship.
Inherited Members
Namespace: DRIT.Presentation
Assembly: DRIT.Presentation.dll
Syntax
public sealed class Control
Constructors
Control()
Initializes a new instance of the Control class with default values.
Declaration
public Control()
Control(string, ControlType)
Initializes a new instance of the Control class with the specified name and type.
Declaration
public Control(string name, ControlType type)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | |
| ControlType | type |
Properties
Frame
Gets or sets the drawing frame occupied by the control.
Declaration
public ControlFrame Frame { get; set; }
Property Value
| Type | Description |
|---|---|
| ControlFrame |
Name
Gets or sets the programmatic name of the control.
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ProgId
Gets or sets the ProgID (programmatic identifier) of the
ActiveX control, e.g. Forms.CommandButton.1.
Declaration
public string ProgId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Properties
Gets the key-value property bag for the control's persisted properties.
Declaration
public IDictionary<string, string> Properties { get; }
Property Value
| Type | Description |
|---|---|
| IDictionary<string, string> |
SubstitutePictureBytes
Gets or sets the substitute picture bytes shown while the ActiveX control is inactive.
Declaration
public byte[] SubstitutePictureBytes { get; set; }
Property Value
| Type | Description |
|---|---|
| byte[] |
Type
Gets or sets the type of the control.
Declaration
public ControlType Type { get; set; }
Property Value
| Type | Description |
|---|---|
| ControlType |