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
<PersonalizableAttribute(PersonalizationScope.Shared)> _
<WebBrowsableAttribute(False)> _
Public Property DisplayColumns As Integer
    Get
    Set
'Usage
Dim instance As ContentByQueryWebPart
Dim value As Integer

value = instance.DisplayColumns

instance.DisplayColumns = value
[PersonalizableAttribute(PersonalizationScope.Shared)]
[WebBrowsableAttribute(false)]
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