ContentControl.Ungroup Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Removes the group content control that contains the ContentControl from the document so that the region is no longer protected.
public:
void Ungroup();
public void Ungroup ();
abstract member Ungroup : unit -> unit
Public Sub Ungroup ()
Exceptions
The ContentControl is not in a GroupContentControl.
Remarks
You can use a GroupContentControl to prevent users from editing a part of a document. If a ContentControl is nested in a GroupContentControl, you can use the Ungroup method to remove the parent GroupContentControl from the document. If you do this, all of the items that were in the GroupContentControl are no longer protected.
For more information about how to use a GroupContentControl to protect parts of a document, see Content Controls and How to: Protect Parts of Documents by Using Content Controls.