Xuni for IOS のドキュメント
外観のカスタマイズ

FlexGrid には、グリッドの外観をカスタマイズするさまざまな組み込みプロパティがあります。ユーザーは、これらのプロパティを使用して、FlexGrid の背景色、1 行おきの色付け、テキスト色、ヘッダー色、フォント、選択モード、選択中のセルの色、その他を設定できます。

次の図は、これらのプロパティを設定した後の、カスタマイズされた FlexGrid の外観を示しています。

次のコード例は、このプロパティを設定する方法を示します。例では、「クイックスタート」セクションで作成したサンプルを使用します。

サンプルコード

grid.selectionMode = GridSelectionMode.Cell
grid.backgroundColor = UIColor.blackColor()
grid.alternatingRowBackgroundColor = UIColor.grayColor()
grid.textColor = UIColor.whiteColor()
grid.borderColor = UIColor.redColor()
grid.columnHeaderBackgroundColor = UIColor.whiteColor()
grid.columnHeaderTextColor = UIColor.blackColor()
grid.selectionMode = gridSelectionModeCell;
grid.backgroundColor = [UIColor blackColor];
grid.alternatingRowBackgroundColor = [UIColor grayColor];
grid.textColor = [UIColor whiteColor];
grid.borderColor = [UIColor redColor];
grid.columnHeaderBackgroundColor = [UIColor whiteColor];
grid.columnHeaderTextColor = [UIColor blackColor];
grid.SelectionMode = FlexSelectionMode.FlexSelectionModeCell;
grid.BackgroundColor = UIColor.Black;
grid.AlternatingRowBackgroundColor = UIColor.Gray;
grid.TextColor = UIColor.White;
grid.BorderColor = UIColor.Red;
grid.ColumnHeaderBackgroundColor = UIColor.White;
grid.ColumnHeaderTextColor = UIColor.Black;

 

 


Copyright © GrapeCity inc. All rights reserved.