Share via


RefinementWebPart.DisplayedCategories Property

Gets or sets the maximum number of filter categories to be displayed.

Namespace:  Microsoft.Office.Server.Search.WebControls
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
<ResourcesAttribute("RefinementPanel_ToolPart_Prop_DispCat", "RefinementPanel_ToolPart_Cat_Refinement",  _
    "RefinementPanel_ToolPart_Tooltip_DispCat")> _
<PersonalizableAttribute(PersonalizationScope.Shared)> _
<WebBrowsableAttribute(True)> _
Public Property DisplayedCategories As Integer
    Get
    Set
'Usage
Dim instance As RefinementWebPart
Dim value As Integer

value = instance.DisplayedCategories

instance.DisplayedCategories = value
[ResourcesAttribute("RefinementPanel_ToolPart_Prop_DispCat", "RefinementPanel_ToolPart_Cat_Refinement", 
    "RefinementPanel_ToolPart_Tooltip_DispCat")]
[PersonalizableAttribute(PersonalizationScope.Shared)]
[WebBrowsableAttribute(true)]
public int DisplayedCategories { get; set; }

Property Value

Type: System.Int32
The maximum number of filter categories to be displayed.

Exceptions

Exception Condition
WebPartPageUserException

The value is set to a negative number.

Remarks

The maximum value is 50.

See Also

Reference

RefinementWebPart Class

RefinementWebPart Members

Microsoft.Office.Server.Search.WebControls Namespace