Udostępnij za pośrednictwem


RichTextContentControl.Temporary Property (2007 System)

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

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

Syntax

'Declaration
<BrowsableAttribute(False)> _
Public Property Temporary As Boolean
'Usage
Dim instance As RichTextContentControl 
Dim value As Boolean 

value = instance.Temporary

instance.Temporary = value
[BrowsableAttribute(false)]
public bool Temporary { get; set; }
[BrowsableAttribute(false)]
public:
property bool Temporary {
    bool get ();
    void set (bool value);
}
public function get Temporary () : boolean 
public function set Temporary (value : boolean)

Property Value

Type: System.Boolean
true if the RichTextContentControl 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 RichTextContentControl is automatically deleted when the user types in the control, or when the text in the control is changed programmatically. When the RichTextContentControl is automatically deleted from the document, the text in the control remains in the document.

.NET Framework Security

See Also

Reference

RichTextContentControl Class

RichTextContentControl Members

Microsoft.Office.Tools.Word Namespace