CardMaker.XML.ProjectLayoutElement.SetElementBorderColor C# (CSharp) Method

SetElementBorderColor() public method

Sets the border color and color string
public SetElementBorderColor ( Color zColor ) : void
zColor Color The color to pull the values from
return void
        public void SetElementBorderColor(Color zColor)
        {
            bordercolor = GetElementColorString(zColor);
            m_colorBorder = zColor;
        }

Usage Example

示例#1
0
 private void SetColorValue(Button btnClicked, Color color, ProjectLayoutElement zElement)
 {
     if (btnClicked == btnElementBorderColor)
     {
         zElement.SetElementBorderColor(color);
     }
     else if (btnClicked == btnElementOutlineColor)
     {
         zElement.SetElementOutlineColor(color);
     }
     else if (btnClicked == btnElementFontColor || btnClicked == btnElementShapeColor)
     {
         zElement.SetElementColor(color);
     }
 }