FontInfo.ClearDefaults 方法

定義

將所有 FontInfo 屬性重設為未設定的狀態,並清除檢視狀態。Resets all FontInfo properties to the unset state and clears the view state.

public:
 void ClearDefaults();
public void ClearDefaults ();
member this.ClearDefaults : unit -> unit
Public Sub ClearDefaults ()

備註

FontInfo 建立物件時,屬性會取消設定 FontInfoFontInfo properties are unset when the FontInfo object is created. 第一次設定屬性時,會將值加入至 view state。When a property is first set, the value is added to view state. ClearDefaults方法可用來將所有屬性設為 [未設定] FontInfo 狀態,並移除 view 狀態中的任何專案。The ClearDefaults method is used to set all the FontInfo properties to the unset state and remove any entries in view state. 下列屬性會重設:The following properties are reset:

適用於

另請參閱