Udostępnij za pośrednictwem


WebPartManagerInternals.SetIsClosed(WebPart, Boolean) Metoda

Definicja

IsClosed Ustawia właściwość kontrolkiWebPart.

public:
 void SetIsClosed(System::Web::UI::WebControls::WebParts::WebPart ^ webPart, bool isClosed);
public void SetIsClosed (System.Web.UI.WebControls.WebParts.WebPart webPart, bool isClosed);
member this.SetIsClosed : System.Web.UI.WebControls.WebParts.WebPart * bool -> unit
Public Sub SetIsClosed (webPart As WebPart, isClosed As Boolean)

Parametry

webPart
WebPart

A WebPart , dla której ta metoda ustawia IsClosed właściwość .

isClosed
Boolean

Wartość logiczna wskazująca, czy obiekt WebPart jest zamknięty na stronie.

Uwagi

Metoda SetIsClosed ustawia IsClosed właściwość webPart. Ta metoda faktycznie nie zamyka webPart; ustawia tylko właściwość, która wskazuje, czy webPart jest zamknięta.

Dotyczy

Zobacz też