Condividi tramite


ComboBoxContentControl.Temporary Property

Gets or sets a value that specifies whether the ComboBoxContentControl is automatically deleted from the document when the control is edited.

Namespace:  Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)

Syntax

'Declaration
Property Temporary As Boolean
bool Temporary { get; set; }

Property Value

Type: System.Boolean
true if the ComboBoxContentControl is automatically deleted when the control is edited; otherwise, false. The default is false.

Exceptions

Exception Condition
COMException

This property is set when the LockContentControl property is true.

Remarks

If the Temporary property is true, the ComboBoxContentControl is automatically deleted when the user types in the control, or when the text in the control is changed programmatically. When the ComboBoxContentControl is automatically deleted from the document, the text in the control remains in the document.

.NET Framework Security

See Also

Reference

ComboBoxContentControl Interface

Microsoft.Office.Tools.Word Namespace