Partilhar via


RefinementWebPart.NumberOfCharsToDisplay Property

Gets or sets the maximum number of characters per line when displaying the filters.

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

Syntax

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

value = instance.NumberOfCharsToDisplay

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

Property Value

Type: System.Int32
The maximum number of characters per line when displaying the filters.

Exceptions

Exception Condition
WebPartPageUserException

The value is set to a negative number.

Remarks

The maximum value is 300.

See Also

Reference

RefinementWebPart Class

RefinementWebPart Members

Microsoft.Office.Server.Search.WebControls Namespace