Outlook) (ColumnFormat.Label 属性

返回或设置一个 字符串 值,表示列标签和工具提示显示为 ColumnFormat 对象关联的属性。 读/写。

语法

expression。 Label

表达式 表示 ColumnFormat 对象的变量。

备注

对于内置的 Outlook 属性,Label 属性的默认值是该属性的本地化名称。 对于自定义 Outlook 属性,Label 属性的默认值是该属性的名称。

此属性的值仅适用于列标题表示为图标的 Outlook 属性的工具提示。

示例

(VBA) 示例下面的 Visual Basic for Applications 循环 ViewFields 集合的当前的 表 对象在集合中显示的标签和 XML 架构的每个 ViewField 对象的名称。

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 支持和反馈,获取有关如何接收支持和提供反馈的指南。