Api检查BoxForm

新建ApiCheckBoxForm

类表示文档复选框/按键

属性

名称 类型 描述性
电台 布林安

指定当前复选框为单调按钮在此例中,键参数被视为一组放射性按钮的标识符

方法论

名称 描述性
清除

清除当前表单

拷贝

复制当前表单

GetClassType系统

返回ApiFormBase类

GetFormKey

返回当前表单键

GetFormType

返回当前表单类型

GetRadioGroup

返回收音机组键,如果当前复选框为收音机按钮

获取图文

返回当前表单文本方法仅适用于文本和组合框表单

GetTextPr

返回当前表单文本属性方法仅适用于文本和组合框表单

GetTipText

返回当前表单的提示文本

获取WrapperShape

返回形状以控制固定大小窗体框的位置和大小空值返回内联表

检查

返回当前复选框状态

IsF定型

检查当前表单是否固定大小

IsRadio按钮

检查当前复选框是否为收音机按钮

所请求

检查当前表单是否需要

SetBackgroundColor

设置当前表单背景色

设置边框颜色

设置边框色当前表单

设置检查

检查当前复选框

segormKey

设置当前表单密钥

SetPlaceholderText

设置占位符文本为当前表单无法设置复选框或收音机按钮

SetRadioGroup

设置收音机组密钥当前收音机按钮

设置必备

指定需要当前表单 。

SetTextPr

设置文本属性为当前表单方法仅适用于文本和组合框表单

SetTip图文

设置提示文本为当前表单

封装

转换当前表单为固定大小表单

内联

转换当前表单为内联表单图片表单无法转换成内联式表单,它总是固定大小对象

实例

拷贝代码
builder.CreateFile("docx")!varoDocuments=api.GetDocumentVarbeckBoxForm = Api.CreateCheckBoxFormoCheckBoxForm.SetRadioGroup("Marital status")!varolements=ODocument.GetEplement0oParagraph.AddElement(oCheckBoxForm)!oParagraph.AddText(" Married")!oParagraph.AddLineBreak()!oclookBoxForm = Api.CreateCheckBoxFormoCheckBoxForm.SetRadioGroup("Marital status")!oParagraph.AddElement(oCheckBoxForm)!adTextvar sradioGroup =oCheckBoxForm.GetRadioGroupvarbdiobutton=oCheckBoxForm.IsradiobuttonoCheckBoxForm.SetChecked(true)!varb检查=oCheckBoxForm.odeptes = Api.Createlementsodept.adText ("文档中的第二个复选框是收音机按钮:+bdiobutton)oParagraph.AddLineBreak()!odclipse.adTextoParagraph.AddLineBreak()!odis.adText (dio组名此文档中的按键:+sdioGroup)oDocument.Push(oParagraph)!builder.SaveFile("docx", "ApiCheckBoxForm.docx")!builder.CloseFile();

结果文档