コード例 #1
0
ファイル: formatstructure.cs プロジェクト: BrentKnowles/flow2
 public BoxDetail(string _name)
 {
     boxfillcolor  = Color.Purple;
     boxthickness  = 6;
     gradient      = 0;
     gradientColor = Color.Purple;
     name          = _name;
     primaryFont   = new FontDetail(1);
     secondaryFont = new FontDetail(1);
     boxType       = BoxType.rect;
 }
コード例 #2
0
ファイル: formatstructure.cs プロジェクト: BrentKnowles/flow2
        public FontDetail GetBoxSecondaryFont(string nodetype)
        {
            FontDetail defaultc = new FontDetail(1);

            foreach (BoxDetail box in boxes)
            {
                if (box.name == nodetype)
                {
                    return(box.secondaryFont);
                }
                else
                if (box.name == "defaultbox")
                {
                    defaultc = box.secondaryFont;;
                }
            }

            return(defaultc);
        }