setColumnsSelector Method
In This Topic
Sets columns selector. It selects columns to import. The default behavior is to auto-generate all columns.
Syntax
public void setColumnsSelector(
java.util.function.Function<Object,Object>
)
|
Parameters
- value
- The %java.util.function.Function<T, R>% accepts the java.lang.Iterable<T>, array or to select columns.
- Returns @code:int[] (@code:IntArray in Kotlin) to select columns by indexes for the specified .
- Returns java.lang.String@code:[] to select columns by namesfor the specified , dictionary or custom object.
- Returns property getter array %java.util.function.Function<T, R>@code:[](where @code:T is the element type of collection, @codeM:com.grapecity.documents.excel.DataImportOptions.getIncludeColumnsHeader% must be @code:false. Otherwise, an exception will be thrown. Because we don't know the column names.
- Returns named property getter array %java.util.AbstractMap.SimpleEntry<K, V>@code:[](where @codejava.lang.String, @codejava.util.function.Function<T, R>%; For each %java.util.function.Function<T, R>, @code:T is the element type of collection, @codeM:com.grapecity.documents.excel.DataImportOptions.getIncludeColumnsHeader% should be @code:true. Otherwise, the column names will be ignored.
See Also