CursorWindow.SetNumColumns(Int32) Method

Definition

Sets the number of columns in this window.

[Android.Runtime.Register("setNumColumns", "(I)Z", "GetSetNumColumns_IHandler")]
public virtual bool SetNumColumns (int columnNum);
[<Android.Runtime.Register("setNumColumns", "(I)Z", "GetSetNumColumns_IHandler")>]
abstract member SetNumColumns : int -> bool
override this.SetNumColumns : int -> bool

Parameters

columnNum
Int32

The new number of columns.

Returns

True if successful.

Attributes

Remarks

Sets the number of columns in this window.

This method must be called before any rows are added to the window, otherwise it will fail to set the number of columns if it differs from the current number of columns.

Java documentation for android.database.CursorWindow.setNumColumns(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to