How to use gembox to control chexbox in word?

As title,

I hope to be able to specify the checkbox name in the program and choose whether to check it. I can also specify the change caption through the name.

Hi,

I’m not sure if you have content controls or legacy form fields, the screenshot isn’t clear.
Nevertheless, I’ll presume that you have content controls, so please try using the following:

var document = DocumentModel.Load("input.docx");

string name = "MyCheckBox1";
var checkbox = document.GetChildElements(true)
    .OfType<IContentControl>()
    .First(contentControl =>
        contentControl.ContentControlType == ContentControlType.CheckBox &&
        contentControl.Properties.Title == name);

checkbox.Properties.Checked = true;

document.Save("output.docx");

Also, please check our Content Controls examples:

Regards,
Mario