//添加文本 public void 添加文本() { User_Text Text = new User_Text(); Text.BkColor = 0; Text.chContent = "test00000"; Text.PartInfo.FrameColor = 0; Text.PartInfo.iFrameMode = 0; Text.PartInfo.iHeight = 32; Text.PartInfo.iWidth = 64; Text.PartInfo.iX = 0; Text.PartInfo.iY = 0; Text.FontInfo.bFontBold = false; Text.FontInfo.bFontItaic = false; Text.FontInfo.bFontUnderline = false; Text.FontInfo.colorFont = g_iYellow; Text.FontInfo.iFontSize = 12; Text.FontInfo.strFontName = "宋体"; Text.FontInfo.iAlignStyle = 0; Text.FontInfo.iVAlignerStyle = 0; Text.FontInfo.iRowSpace = 2; Text.MoveSet.bClear = false; Text.MoveSet.iActionSpeed = 5; Text.MoveSet.iActionType = 0; Text.MoveSet.iHoldTime = 20; Text.MoveSet.iClearActionType = 0; Text.MoveSet.iClearSpeed = 4; Text.MoveSet.iFrameTime = 20; if (-1 == User_AddText(g_iCardNum, ref Text, g_iProgramIndex)) { Console.WriteLine("添加文本失败!"); } else { Console.WriteLine("添加文本成功!"); } }
public static extern int User_AddText(int CardNum, ref User_Text pText, int iProgramIndex);