ColumnFormat.Label プロパティ (Outlook)

返すまたは、列ラベルと ColumnFormat オブジェクトと関連付けられているプロパティに対して表示されるツールヒントを表す 文字列 値を設定します。 値の取得と設定が可能です。

構文

Label

ColumnFormat オブジェクトを表す変数。

注釈

組み込みの Outlook プロパティの場合、このプロパティの既定値はプロパティのローカライズ名です。 ユーザー定義の Outlook プロパティの場合、このプロパティの既定値はプロパティの名前です。

このプロパティの値が適用されるのは、列ヘッダーがアイコンとして表される Outlook プロパティのツール ヒントだけです。

次の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

関連項目

ColumnFormat オブジェクト

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

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