WebPart.IsVisible property
NOTE: This API is now obsolete.
取得或設定是否會顯示 [網頁組件。
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
<WebPartStorageAttribute(Storage := Storage.Personal)> _
<ObsoleteAttribute("Use Hidden instead.")> _
Public Property IsVisible As Boolean
Get
Set
'用途
Dim instance As WebPart
Dim value As Boolean
value = instance.IsVisible
instance.IsVisible = value
[WebPartStorageAttribute(Storage = Storage.Personal)]
[ObsoleteAttribute("Use Hidden instead.")]
public bool IsVisible { get; set; }
Property value
Type: System.Boolean
true可見 ; [網頁組件時否則,請false。預設值為true。
備註
falseIsVisible屬性時,網頁組件仍可以連線至其他網頁組件。
此屬性與不同System.Web.UI.Control.Visible ,當IsVisible屬性為false; 呈現的網頁組件不過,將會發出的網頁組件基礎結構 」 顯示: 無"中隱藏的網頁組件顯示轉譯的 style 屬性。
此屬性可以由個別使用者個人化。其WebPartStorageAttribute值為Storage.Personal,這會指定的屬性可以儲存每個使用者為基礎。僅限具有個人化網頁組件頁面] 權限的使用者可以設定這個屬性。以程式設計方式設定,或者它可以設定透過 [網頁組件] 工作窗格,在個人檢視中的 Web 型使用者介面中,或使用SharePoint Foundation-相容的 HTML 編輯器,例如SharePoint Designer。
開頭為Windows SharePoint Services 3.0,使用此屬性會隱藏靜態網頁組件的唯一方式 (一個不在區域)。