LayoutEngine 建構函式

定義

初始化 LayoutEngine 類別的新執行個體。Initializes a new instance of the LayoutEngine class.

protected:
 LayoutEngine();
protected LayoutEngine ();
Protected Sub New ()

給繼承者的注意事項

配置引擎相關聯容器類別的任何實例的版面配置行為應該相同。Layout behavior should be the same for any instance of your layout engine's associated container class. 基於這個理由,請考慮將您的配置引擎 protectedprivate宣告為,並將您的版面配置引擎實作為單一類別。For this reason, consider declaring your layout engine's constructor protected or private, and implementing your layout engine as a singleton class.

適用於