Share via


ContentByQueryWebPart.DisplayColumns Property

Gets or sets the number of columns that are displayed.

Namespace:  Microsoft.SharePoint.Publishing.WebControls
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)

Syntax

'Declaration
<WebBrowsableAttribute(False)> _
<PersonalizableAttribute(PersonalizationScope.Shared)> _
Public Property DisplayColumns As Integer
    Get
    Set
'Usage
Dim instance As ContentByQueryWebPart
Dim value As Integer

value = instance.DisplayColumns

instance.DisplayColumns = value
[WebBrowsableAttribute(false)]
[PersonalizableAttribute(PersonalizationScope.Shared)]
public int DisplayColumns { get; set; }

Property Value

Type: System.Int32
An integer representing the number of columns that are displayed.

See Also

Reference

ContentByQueryWebPart Class

ContentByQueryWebPart Members

Microsoft.SharePoint.Publishing.WebControls Namespace

ContentByQueryWebPart