TimelineView.ShowWeekNumbers プロパティ (Outlook)

TimelineView オブジェクトの時間帯目盛りの週の番号のラベルが表示されるかどうかを示す ブール 値を設定を取得または取得します。 値の取得と設定が可能です。

構文

ShowWeekNumbers

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

注釈

True にこのプロパティが設定されている場合、 TimelineView オブジェクトの時間帯目盛りの週の番号のラベルが表示される場所は、 TimelineViewMode プロパティの値によって異なります。

プロパティ値 ラベルの場所
olTimelineViewDay 時間帯目盛りの上部の、日付ラベルの前に表示されます。
olTimelineViewWeek 時間帯目盛りの上部の、週ラベルの前に表示されます。
olTimelineViewMonth 時間帯目盛りの下部に、日付と日付ラベルを置き換えて表示されます。

次の Visual Basic for Applications (VBA) の例では、Outlook アイテムを月単位で 40 文字までのラベルを持つタイムライン スケールの下部に週の番号ラベルを表示するのには、現在の TimelineView オブジェクトを構成します。

Private Sub ConfigureMonthTimelineView() 
 
 Dim objTimelineView As TimelineView 
 
  If Application.ActiveExplorer.CurrentView.ViewType = _ 
 
 olTimelineView Then 
   
 ' Obtain a TimelineView object reference for the  
 ' current timeline view. 
 
 Set objTimelineView = _ 
 
 Application.ActiveExplorer.CurrentView 
   
 ' Configure the TimelineView object so that it displays  
 ' Outlook items by month and week, displaying labels  
 ' no larger than 40 characters for Outlook items  
 ' displayed in the view. 
 
 With objTimelineView 
 
 ' Display items by month. 
 
 .TimelineViewMode = olTimelineViewMonth 
 
 ' Display week numbers. If this value is  
 ' set to False when TimelineViewMode is  
 ' set to olTimelineViewMonth, the day  
 ' numbers are displayed instead. 
 
 .ShowWeekNumbers = True 
 
 ' Display labels for Outlook items  
 ' while TimelineViewMode is set to  
 ' olTimelineViewMonth. 
 
 .ShowLabelWhenViewingByMonth = True 
 
 ' Show no more than the first 40 characters  
 ' for each Outlook item in the view. 
 
 .MaxLabelWidth = 40 
 
  ' Save and apply the view. 
 
 .Save 
 
 .Apply 
 
 End With 
 
 End If 
 
  
End Sub

関連項目

TimelineView オブジェクト

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

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