:: ooo :: vba :: excel ::

unpublished interface XGraphicObjects
Usage Restrictions
not published
Description
Collections that implement this interface provide access to a specific type of drawing objects in a single sheet.

The following sheet symbols represent collections of graphic objects, and therefore implement this interface:

  • Buttons: push button (command button) controls,
  • ChartObjects: chart objects embedded in the sheet,
  • CheckBoxes: check box controls,
  • DropDowns: drop-down listbox controls,
  • EditBoxes: text edit controls (dialog sheets only),
  • GroupBoxes: group frame controls,
  • GroupObjects: group objects containing other child objects,
  • Labels: fixed text controls,
  • ListBoxes: plain listbox controls,
  • OptionButtons: option button (radio button) controls,
  • Ovals: simple ovals and circles,
  • Pictures: picture objects,
  • Rectangles: simple rectangle objects,
  • ScrollBars: scrollbar controls,
  • Spinners: spinner (spin button) controls,
  • TextBoxes: rectangle objects with embedded text.

These symbols are now deprecated in VBA but kept for compatibility with old VBA scripts. All symbols representing collections of form controls do NOT belong to ActiveX form controls but to the old-style drawing controls.


Methods' Summary
Add Adds a new graphic object to the sheet this collection belongs to. The type of the object is determined by the type of the collection.  
Methods' Details
Add
any
Add( [in] any  fLeft,
[in] any  fTop,
[in] any  fWidth,
[in] any  fHeight );

Description
Adds a new graphic object to the sheet this collection belongs to. The type of the object is determined by the type of the collection.
Parameter fLeft
Position of the left border in points (1/72 inch).
Parameter fTop
Position of the top border in points (1/72 inch).
Parameter fWidth
Width of the object in points (1/72 inch).
Parameter fHeight
Height of the object in points (1/72 inch).
Returns
The created graphic object.
Top of Page