ne_ven_findStyle

VGlobalStyle *sbne::ne_ven_findStyle(Veneer *ven, NGraphicalObject *gO = NULL, StyleType type = NUM_StyleType)

Searches among all VGlobalStyle and VLocalStyle objects of this Veneer object, and returns one according to the.

following priority:

  • the one with the “id” attribute of the NGraphicalObject object in its “idlist” attribute list.

  • the one with the “role” attribute of the NGraphicalObject object in its “rolelist” attribute list.

  • the one with the “type” attribute of the NGraphicalObject object in its “typelist” attribute list.

  • the one with the entered type in in its “typelist” attribute list.

Parameters:
  • ven – a pointer to the Veneer object.

  • gO – a pointer to the NGraphicalObject object.

  • type – a StyleType.

Returns:

a pointer to the found VGlobalStyle object.