| getLineCount() | ใช้คืนค่า จำนวนแถว ของ Object TextView |
|---|
method:getLineCount ( )
return type:int
content:ใช้คืนค่า จำนวนแถว ของ Object TextView
example:public class AndroidBamboo extends Activity { public void onCreate( Bundle savedInstanceState ) { super.onCreate ( savedInstanceState ); TextView text = new TextView ( this ); text.setText ( "WelCome To BambooLabCode.com" ); int line_count = text.getLineCount ( ); setContentView ( text ); } }