HyperLinkField.InitializeCell 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化物件中的 HyperLinkField 一個儲存格。
public:
override void InitializeCell(System::Web::UI::WebControls::DataControlFieldCell ^ cell, System::Web::UI::WebControls::DataControlCellType cellType, System::Web::UI::WebControls::DataControlRowState rowState, int rowIndex);
public override void InitializeCell(System.Web.UI.WebControls.DataControlFieldCell cell, System.Web.UI.WebControls.DataControlCellType cellType, System.Web.UI.WebControls.DataControlRowState rowState, int rowIndex);
override this.InitializeCell : System.Web.UI.WebControls.DataControlFieldCell * System.Web.UI.WebControls.DataControlCellType * System.Web.UI.WebControls.DataControlRowState * int -> unit
Public Overrides Sub InitializeCell (cell As DataControlFieldCell, cellType As DataControlCellType, rowState As DataControlRowState, rowIndex As Integer)
參數
- cell
- DataControlFieldCell
DataControlFieldCell A 包含 . 的文字或控制項HyperLinkField。
- cellType
- DataControlCellType
這是其中一項 DataControlCellType 價值。
- rowState
- DataControlRowState
DataControlRowState其中一個值指定包含 HyperLinkField的列狀態。
- rowIndex
- Int32
表格中該列的索引。
備註
InitializeCell此方法由包含物件HyperLinkField的資料綁定控制項呼叫,以初始HyperLink化連結的文字與網址控制項。