Sets the image from a graphic file as the icon for the specified library shape.
Applies to: Master object
[[Let] booleanRet =] object.SetIcon ( iconName ) |
The SetIcon method syntax has these parts:
Part | Description |
object | Required. An expression that returns a Master object. |
iconName | Required. An expression that returns a String value. The name and path (full or relative) to the file that contains the icon image. |
booleanRet | Optional. A Boolean type variable. |
If the file with the iconName name can't be opened, is not a graphic file, or is not supported by ConceptDraw, the SetIcon method doesn't change the current icon of the library shape and returns False. If the icon has been replaced successfully, the method returns True.
See Also |
Equal method, SetShape method |