OlkControl OlkControl OlkControl Interface

Definition

Defines a set of control properties common to some Microsoft Outlook controls.

public interface class OlkControl
[System.Runtime.InteropServices.Guid("00067366-0000-0000-C000-000000000046")]
public interface OlkControl
Public Interface OlkControl
Attributes

Remarks

The members offered by OlkControl can apply to most Outlook controls. OlkControl provides a class to which you can conveniently cast an Outlook control without resorting to reflection. Although OlkControl does not apply to Microsoft Forms 2.0 controls, similar properties are available to Forms 2.0 controls. For more information, see OL98: Additional Control Properties Available for Programming

Properties

ControlProperty ControlProperty ControlProperty

Returns or sets a String (string in C#) that represents the property on the control that the databind occurs with. Read/write

EnableAutoLayout EnableAutoLayout EnableAutoLayout

Returns or sets a Boolean (bool in C#) that enables automatic adjustments of the layout for the control with respect to the rest of the form. Read/write.

Format Format Format

Returns or sets an Integer (int in C#) value that specifies how a value is to be displayed in the control. Read/write.

HorizontalLayout HorizontalLayout HorizontalLayout

Returns or sets an OlHorizontalLayout constant that specifies any alignment in the horizontal direction of this control with other selected controls on the form, or whether the control is adjusted in the horizontal direction automatically when the form's width is changed. Read/write.

ItemProperty ItemProperty ItemProperty

Returns or sets a String (string in C#) that specifies the name of the property in the Outlook object model that the control is bound to. Read/write.

MinimumHeight MinimumHeight MinimumHeight

Returns or sets an Integer (int in C#) value that specifies the minimum height the control can be automatically sized down to. Read/write.

MinimumWidth MinimumWidth MinimumWidth

Returns or sets an Integer (int in C#) value that specifies the minimum width the control can be automatically sized down to. Read/write.

PossibleValues PossibleValues PossibleValues

Returns or sets a String (string in C#) that represents a list of possible values for the drop-down list for the control, seperated by semicolons. Read/write.

VerticalLayout VerticalLayout VerticalLayout

Returns or sets an OlVerticalLayout constant that specifies any alignment in the vertical direction of this control with other selected controls on the form, or whether the control is adjusted in the vertical direction automatically when the form's length is changed. Read/write.

Applies to