Udostępnij za pośrednictwem


OLEObject.ListFillRange Property (2007 System)

Gets or sets a value that identifies the range used to fill the specified list box.

Namespace:  Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel.v9.0 (in Microsoft.Office.Tools.Excel.v9.0.dll)

Syntax

'Declaration
Public Property ListFillRange As String
'Usage
Dim instance As OLEObject 
Dim value As String 

value = instance.ListFillRange

instance.ListFillRange = value
public string ListFillRange { get; set; }
public:
property String^ ListFillRange {
    String^ get ();
    void set (String^ value);
}
public function get ListFillRange () : String 
public function set ListFillRange (value : String)

Property Value

Type: System.String
A value that identifies the range used to fill the specified list box.

Remarks

Microsoft Office Excel reads the contents of every cell in the range and inserts the cell values into the list box. The list tracks changes in the range’s cells.

Setting this property destroys any existing list in the list box.

If the list in the list box was created with the AddItem(String, Object) method, this property returns an empty string ("").

.NET Framework Security

See Also

Reference

OLEObject Class

OLEObject Members

Microsoft.Office.Tools.Excel Namespace