Olvasás angol nyelven

Megosztás a következőn keresztül:


OLEObject.AutoLoad Property (2007 System)

Gets or sets a value that indicates whether the OLEObject is automatically loaded when the workbook that contains it is opened.

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

Syntax

'Declaration
Public Property AutoLoad As Boolean
'Usage
Dim instance As OLEObject 
Dim value As Boolean 

value = instance.AutoLoad

instance.AutoLoad = value
public bool AutoLoad { get; set; }
public:
property bool AutoLoad {
    bool get ();
    void set (bool value);
}
public function get AutoLoad () : boolean 
public function set AutoLoad (value : boolean)

Property Value

Type: System.Boolean
true if the OLEObject is automatically loaded when the workbook that contains it is opened; otherwise, false.

Remarks

This property is ignored by ActiveX controls. ActiveX controls are always loaded when a workbook is opened.

For most OLE object types, this property should not be set to true. By default, the AutoLoad property is set to false for new OLE objects; this saves time and memory when Microsoft Office Excel is loading workbooks. The benefit of automatically loading OLE objects is that, for objects that represent volatile data, links to source data can be reestablished immediately and the objects can be rendered again if necessary.

.NET Framework Security

See Also

Reference

OLEObject Class

OLEObject Members

Microsoft.Office.Tools.Excel Namespace