InsertOleObjectFrame

InsertOleObjectFrame(int, float, float, float, float, IOleEmbeddedDataInfo)

Crée un nouvel objet OLE et l’insère dans une collection à l’index spécifié.

public IOleObjectFrame InsertOleObjectFrame(int index, float x, float y, float width, float height, 
    IOleEmbeddedDataInfo dataInfo)
ParamètreTypeDescription
indexInt32L’index basé sur zéro auquel l’objet OLE doit être inséré.
xSingleCoordonnée X d’un nouveau cadre OLE.
ySingleCoordonnée Y d’un nouveau cadre OLE.
widthSingleLargeur d’un nouveau cadre OLE.
heightSingleHauteur d’un nouveau cadre OLE.
dataInfoIOleEmbeddedDataInfoInformations sur les données intégrées IOleEmbeddedDataInfo.

Valeur de retour

Objet OLE créé.

Voir aussi


InsertOleObjectFrame(int, float, float, float, float, string, string)

Crée un nouvel objet OLE et l’insère dans une collection à l’index spécifié.

public IOleObjectFrame InsertOleObjectFrame(int index, float x, float y, float width, float height, 
    string className, string path)
ParamètreTypeDescription
indexInt32L’index basé sur zéro auquel l’objet OLE doit être inséré.
xSingleCoordonnée X d’un nouveau cadre OLE.
ySingleCoordonnée Y d’un nouveau cadre OLE.
widthSingleLargeur d’un nouveau cadre OLE.
heightSingleHauteur d’un nouveau cadre OLE.
classNameStringNom d’une classe OLE.
pathStringChemin vers le fichier lié.

Valeur de retour

Objet OLE créé.

Voir aussi