Share via


PublishButton.Visible Property

Gets or sets a value that indicates whether the button is visible on the current form.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Overrides Property Visible As Boolean
    Get
    Set
'Usage
Dim instance As PublishButton
Dim value As Boolean

value = instance.Visible

instance.Visible = value
public override bool Visible { get; set; }

Property Value

Type: System.Boolean
true if the button is visible on the current form; otherwise, false.

Remarks

This override returns false if the current user does not have permission to approve items; otherwise it returns the base SaveButton.Visible.

See Also

Reference

PublishButton Class

PublishButton Members

Microsoft.SharePoint.WebControls Namespace