Partilhar via


SPFieldMultiLineText.NumberOfLines Property

Gets or sets the number of lines to display in the field.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<ClientCallableAttribute> _
<ClientCallableConstraintAttribute(FixedId := "NumberOfLinesMaxValue", Type := ClientCallableConstraintType.MaxValue,  _
    Value := )> _
<ClientCallableConstraintAttribute(FixedId := "NumberOfLinesMinValue", Type := ClientCallableConstraintType.MinValue,  _
    Value := )> _
Public Property NumberOfLines As Integer
    Get
    Set
'Usage
Dim instance As SPFieldMultiLineText
Dim value As Integer

value = instance.NumberOfLines

instance.NumberOfLines = value
[ClientCallableAttribute]
[ClientCallableConstraintAttribute(FixedId = "NumberOfLinesMaxValue", Type = ClientCallableConstraintType.MaxValue, 
    Value = )]
[ClientCallableConstraintAttribute(FixedId = "NumberOfLinesMinValue", Type = ClientCallableConstraintType.MinValue, 
    Value = )]
public int NumberOfLines { get; set; }

Property Value

Type: System.Int32
A 32-bit integer that represents the number of lines.

See Also

Reference

SPFieldMultiLineText Class

SPFieldMultiLineText Members

Microsoft.SharePoint Namespace