TableItemStyle.CopyFrom(Style) 方法

定義

將指定之 Style 的非空白樣式屬性,複製至呼叫這個方法的 TableItemStyle 類別執行個體。Duplicates the non-empty style properties of the specified Style into the instance of the TableItemStyle class that this method is called from.

public:
 override void CopyFrom(System::Web::UI::WebControls::Style ^ s);
public override void CopyFrom (System.Web.UI.WebControls.Style s);
override this.CopyFrom : System.Web.UI.WebControls.Style -> unit
Public Overrides Sub CopyFrom (s As Style)

參數

s
Style

Style,表示要複製的樣式。A Style that represents the style to copy.

備註

CopyFrom 可以使用方法,將指定之的非空白樣式屬性複製 StyleTableItemStyle 呼叫這個方法的類別實例。Use the CopyFrom method to duplicate the non-empty style properties of the specified Style into the instance of the TableItemStyle class that this method is called from.

警告

在類別的目前實例中,所有屬性 TableItemStyle 都是由參數中的相關聯屬性所取代 sAll properties in the current instance of the TableItemStyle class are replaced by the associated property in the s parameter.

適用於

另請參閱