ColumnFormat オブジェクト (Outlook)

ビュー内の順序フィールドまたはビュー フィールドの表示プロパティを表します。

注釈

ColumnFormat オブジェクトは、OrderField オブジェクトまたは ViewField オブジェクトの表示プロパティ (配置やフィールドの種類など) を表します。 ViewField オブジェクトの ColumnFormat プロパティを使用して、ビュー フィールドの表示プロパティにアクセスします。

Label プロパティを使用すると、フィールドのラベルに使用するテキストを取得または変更でき、 Align プロパティを使用すると、フィールド内の内容の配置を確認できます。

FieldType プロパティを使用すると、そのフィールドに表示されるデータの型と形式を確認でき、 FieldFormat プロパティを使用すると、そのフィールドのデータの書式設定方法を確認できます。

次のVisual Basic for Applications (VBA) の例では、現在の TableView オブジェクトの ViewFields コレクションを反復処理し、コレクション内の各 ViewField オブジェクトのラベルと XML スキーマ名を表示します。

Private Sub DisplayTableViewFields() 
 
 Dim objTableView As TableView 
 
 Dim objViewField As ViewField 
 
 Dim strOutput As String 
 
 
 
 If Application.ActiveExplorer.CurrentView.ViewType = _ 
 
 olTableView Then 
 
 
 
 ' Obtain a TableView object reference for the 
 
 ' current table view. 
 
 Set objTableView = _ 
 
 Application.ActiveExplorer.CurrentView 
 
 
 
 ' Iterate through the ViewFields collection for 
 
 ' the table view, obtaining the label and the 
 
 ' XML schema name for each field included in 
 
 ' the view. 
 
 For Each objViewField In objTableView.ViewFields 
 
 With objViewField 
 
 strOutput = strOutput & .ColumnFormat.Label & _ 
 
 " (" & .ViewXMLSchemaName & ")" & vbCrLf 
 
 End With 
 
 Next 
 
 
 
 ' Display a dialog box containing the concatenated 
 
 ' view field information. 
 
 MsgBox strOutput 
 
 End If 
 
End Sub 
 

プロパティ

名前
Align
Application
クラス
FieldFormat
FieldType
ラベル
Parent
Session
Width

関連項目

Outlook オブジェクト モデル リファレンス

サポートとフィードバック

Office VBA またはこの説明書に関するご質問やフィードバックがありますか? サポートの受け方およびフィードバックをお寄せいただく方法のガイダンスについては、Office VBA のサポートおよびフィードバックを参照してください。