Type: BCS.Sym3.ITemplateSetter

Represents a setter of a template

Properties


PropertyDisplayName

  • Description: Gets property display name
  • Type: String
  • Access: Read

PropertyName

  • Description: Gets the property name
  • Type: String
  • Access: Read
  • Example:
<code>
            var template = Project.Templates.New("Button")
            
            // loop setters
            for(i=0; template.Setters.Count; i++) {
            
              var setter = template.Setters[i];
            
              print(setter.PropertyName);
              setter.Value = Project.Colors["Sym3 Red"]; 
            }
            </code>

            var template = Project.Templates.New("Button")
            
            // loop setters
            for(i=0; template.Setters.Count; i++) {
            
              var setter = template.Setters[i];
            
              print(setter.PropertyName);
              setter.Value = Project.Colors["Sym3 Red"]; 
            }
            

PropertyType

  • Description: Gets .Net property type
  • Type: Type
  • Access: Read

Template

  • Description: Gets the template owner of this setter.
  • Type: ITemplate
  • Access: Read

Value

  • Description: Gets or sets the value
  • Type: Object
  • Access: Read and Write
  • Example:
<code>
            var template = Project.Templates.New("Button")
            
            // loop setters
            for(i=0; template.Setters.Count; i++) {
            
              var setter = template.Setters[i];
            
              setter.PropertyName = "BorderColor";
              setter.Value = Project.Colors["Sym3 Red"]; 
            }
            </code>

            var template = Project.Templates.New("Button")
            
            // loop setters
            for(i=0; template.Setters.Count; i++) {
            
              var setter = template.Setters[i];
            
              setter.PropertyName = "BorderColor";
              setter.Value = Project.Colors["Sym3 Red"]; 
            }
            

Methods


FromXmlString(BCS.IToolXmlToObjectHelper)

Init object from IToolXmlToObjectHelper. All properties found in the RootElement of IToolXmlToObjectHelper will be set with the value in the rootElement

  • Parameters:
    • xmlHelperObj: xmlHelperObj IToolXmlToObjectHelper

FromXmlString(System.String)

Init object from xml. All properties found in the xml will be set with the value in the xml file

  • Parameters:
    • xmlText: Xml string

FromXmlString(System.Xml.Linq.XElement)

Init object from root element. All properties found in the XElement will be set with the value in the XElement

  • Parameters:
    • objXml: objXml XElement

ToXmlString

Converts the object in an xml string

  • Returns:
    • the string that contains xml version of the object