本文整理汇总了C#中Cell.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# Cell.ToString方法的具体用法?C# Cell.ToString怎么用?C# Cell.ToString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Cell
的用法示例。
在下文中一共展示了Cell.ToString方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CheckIfFieldConstructorSetsProperFieldPositionsValue
public void CheckIfFieldConstructorSetsProperFieldPositionsValue()
{
var testFieldSize = 4;
var testFieldPositions = new Cell[testFieldSize, testFieldSize];
var field = new Field(testFieldSize);
Assert.AreEqual(field.FieldPositions.ToString(), testFieldPositions.ToString());
}
示例2: Main
static void Main(string[] args)
{
Console.ReadLine();
Cell s1 = new Cell("name", "content", "value");
Console.WriteLine(s1.ToString());
Cell s2 = new Cell("name", null, null);
Console.WriteLine(s2.ToString());
s2.Value = "value";
Console.WriteLine(s2.ToString());
s2.Content = "content";
Console.WriteLine(s2.ToString());
Console.ReadLine();
}
示例3: GetCell
public virtual UITableViewCell GetCell(Cell item, UITableViewCell reusableCell, UITableView tv)
{
var tvc = reusableCell as CellTableViewCell ?? new CellTableViewCell(UITableViewCellStyle.Default, item.GetType().FullName);
tvc.Cell = item;
WireUpForceUpdateSizeRequested(item, tvc, tv);
tvc.TextLabel.Text = item.ToString();
UpdateBackground(tvc, item);
return tvc;
}
示例4: GetCellCore
protected virtual AView GetCellCore(Cell item, AView convertView, ViewGroup parent, Context context)
{
Performance.Start();
LayoutInflater inflater = LayoutInflater.FromContext(context);
const int type = global::Android.Resource.Layout.SimpleListItem1;
AView view = inflater.Inflate(type, null);
var textView = view.FindViewById<TextView>(global::Android.Resource.Id.Text1);
textView.Text = item.ToString();
textView.SetBackgroundColor(global::Android.Graphics.Color.Transparent);
view.SetBackgroundColor(global::Android.Graphics.Color.Black);
Performance.Stop();
return view;
}
示例5: to_string_returns_value_as_string
public void to_string_returns_value_as_string()
{
var newCell = new Cell("hello");
Assert.AreEqual("hello", newCell.ToString());
}