I have come across a solution that solved my problem. I just registered an event, when the Selection changes, Word checks if a content control is present in that selection. IF there is a content control, the selection is set to 0. So the user can't select a content control to delete it.
vstoDocument = Globals.Factory.GetVstoObject(this.Application.ActiveDocument);
vstoDocument.SelectionChange += VstoDocument_SelectionChange;
private void VstoDocument_SelectionChange(object sender, SelectionEventArgs e) {
Word.Selection selection = this.Application.Selection;
foreach (Word.ContentControl c in selection.ContentControls)
{
if(c != null)
{
selection.SetRange(0, 0);
MessageBox.Show("Content Controls not selectable!");
}
}
}
You can thank me later