C# Class BuildingCoder.CmdRemoveImportedJpgs

Inheritance: IExternalCommand
Mostra file Open project: jeremytammik/the_building_coder_samples

Public Methods

Method Description
Execute ( ExternalCommandData commandData, string &message, ElementSet elements ) : System.Result

Private Methods

Method Description
ElementNameEndsWithJpg ( Element e ) : bool

Return true if the given element name ends in ".jpg".

ElementNameMayIndicateImageFileReference ( Element e ) : bool

Return true if the given element name seems to indicate an image file refrerence, i.e. ends in ".jpg", ".jpeg", or ".bmp". This is of course still no guarantee, a user may create elements named like this just to shoot herself in her foot, so beware!

Method Details

Execute() public method

public Execute ( ExternalCommandData commandData, string &message, ElementSet elements ) : System.Result
commandData ExternalCommandData
message string
elements ElementSet
return System.Result