ASP.NET TextAlign ਪ੍ਰਤੀਯੋਗਿਤਾ

ਵਿਆਖਿਆ ਅਤੇ ਵਰਤੋਂ

TextAlign ਪ੍ਰਤੀਯੋਗਿਤਾ ਨੂੰ ਵਰਤਿਆ ਜਾਂਦਾ ਹੈ ਤਾਂ ਕਿ RadioButtonList ਆਈਟਮ ਦੀ ਟੈਕਸਟ ਦੀ ਸ਼ਾਨਦਾਰਤਾ ਨੂੰ ਲੈਣ ਜਾਂ ਸੈਟ ਕੀਤਾ ਜਾ ਸਕੇ。

ਵਿਧਾਨ

<asp:RadioButtonList TextAlign="align" runat="server">
ਕੁਝ ਸਮਗਰੀ
</asp:RadioButtonList >
ਪ੍ਰਤੀਯੋਗਿਤਾ ਵਰਣਨ
align

ਸੂਚੀ ਅਂਤਰਿਕਸ਼ ਦੀ ਟੈਕਸਟ ਮੌਜੂਦਗੀ ਦੀ ਸ਼ਾਨਦਾਰਤਾ ਨੂੰ ਨਿਰਧਾਰਿਤ ਕਰਦਾ ਹੈ。

ਸੰਭਵ ਮੁੱਲ:

  • ਲੈਫਟ
  • ਰਾਇਟ (ਮੂਲਤਬੀ)

ਇੰਸਟੈਂਸ

ਹੇਠ ਦਾ ਉਦਾਹਰਣ RadioButtonList ਕੰਟਰੋਲ ਵਿੱਚ TextAlign ਨੂੰ "Left" ਸੈਟ ਕਰਦਾ ਹੈ:

<form runat="server">
<asp:RadioButtonList id="rb1" runat="server" TextAlign="Left">
ਕੁਝ ਸਮਗਰੀ
</asp:RadioButtonList>
</form>

ਇੰਸਟੈਂਸ

RadioButtonList ਕੰਟਰੋਲ ਦੀ TextAlign ਪ੍ਰਤੀਯੋਗਿਤਾ ਸੈਟ ਕਰੋ