共用方式為


FieldCssClassProvider.GetFieldCssClass(EditContext, FieldIdentifier) 方法

定義

取得字串,指出指定欄位的狀態為 CSS 類別。

public:
 virtual System::String ^ GetFieldCssClass(Microsoft::AspNetCore::Components::Forms::EditContext ^ editContext, Microsoft::AspNetCore::Components::Forms::FieldIdentifier ^ fieldIdentifier);
public virtual string GetFieldCssClass (Microsoft.AspNetCore.Components.Forms.EditContext editContext, in Microsoft.AspNetCore.Components.Forms.FieldIdentifier fieldIdentifier);
abstract member GetFieldCssClass : Microsoft.AspNetCore.Components.Forms.EditContext * FieldIdentifier -> string
override this.GetFieldCssClass : Microsoft.AspNetCore.Components.Forms.EditContext * FieldIdentifier -> string
Public Overridable Function GetFieldCssClass (editContext As EditContext, fieldIdentifier As FieldIdentifier) As String

參數

editContext
EditContext

EditContext

fieldIdentifier
FieldIdentifier

FieldIdentifier

傳回

CSS 類別名稱字串。

適用於