次の方法で共有


OlkControl.Format Property

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

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

Syntax

'Declaration
<DispIdAttribute()> _
Property Format As Integer
    Get
    Set
'Usage
Dim instance As OlkControl
Dim value As Integer

value = instance.Format

instance.Format = value
[DispIdAttribute()]
int Format { get; set; }

Property Value

Type: System.Int32

Remarks

The Format property can be a constant in an enumeration that describes how to display a value. For example, you can specify Format as the constant olFormatCurrencyDecimal that is defined in the OlFormatCurrency enumeration to display a currency value in an OlkTextBox control.

The Format property is specific to the property in the Outlook Object Model that the control is bound to. The latter is indicated by OlkControl.ItemProperty. If the control is not bound to any property, then accessing Format will return an error.

See Also

Reference

OlkControl Interface

OlkControl Members

Microsoft.Office.Interop.Outlook Namespace