예제 #1
0
        public static void GCF(CogRecordDisplay mdisplay, string s1, string font, int size, double d1, double d2,
                               string lab, CogColorConstants mcolor, CogGraphicLabelAlignmentConstants mali)
        {
            var mlable = new CogGraphicLabel();
            //mfont = "微软雅黑";

            var mfont = new Font(font, size, FontStyle.Regular);

            mlable.GraphicDOFEnableBase = CogGraphicDOFConstants.None;
            mlable.SelectedSpaceName    = s1;
            mlable.Interactive          = false;
            mlable.Font      = mfont;
            mlable.Color     = mcolor;
            mlable.Alignment = mali;
            mlable.SetXYText(d1, d2, lab);
            mdisplay.InteractiveGraphics.Add(mlable, "", false);
        }
예제 #2
0
        public void DrawText(string _Message, double _StartX, double _StartY, CogColorConstants _Color, int _FontSize = 9, CogGraphicLabelAlignmentConstants _Align = CogGraphicLabelAlignmentConstants.TopLeft)
        {
            System.Drawing.Font _Font = new System.Drawing.Font("나눔바른고딕", _FontSize, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));

            cogLabel.Color     = _Color;
            cogLabel.Font      = _Font;
            cogLabel.Alignment = _Align;
            cogLabel.SetXYText(_StartX, _StartY, _Message);
            kCogDisplay.StaticGraphics.Add(cogLabel, "Message");
        }