Compartilhar via


ListDataFormat.MaxCharacters Property

Returns an Integer containing the maximum number of characters allowed in the ListColumn object if the Type property is set to xlListDataTypeText or xlListDataTypeMultiLineText. Returns -1 for columns whose Type property is set to a non-text value. Read-only Integer.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
ReadOnly Property MaxCharacters As Integer
    Get
'Usage
Dim instance As ListDataFormat
Dim value As Integer

value = instance.MaxCharacters
int MaxCharacters { get; }

Property Value

Type: System.Int32

Remarks

This property is used only for lists that are linked to a SharePoint site.

In Microsoft Excel, you cannot set any of the properties associated with the ListDataFormat object. You can set these properties, however, by modifying the list on the SharePoint site.

See Also

Reference

ListDataFormat Interface

ListDataFormat Members

Microsoft.Office.Interop.Excel Namespace