本文整理汇总了C#中NSTableColumn.identifier方法的典型用法代码示例。如果您正苦于以下问题:C# NSTableColumn.identifier方法的具体用法?C# NSTableColumn.identifier怎么用?C# NSTableColumn.identifier使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NSTableColumn
的用法示例。
在下文中一共展示了NSTableColumn.identifier方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: tableView_setObjectValue_forTableColumn_row
public void tableView_setObjectValue_forTableColumn_row(NSTableView table, NSObject value, NSTableColumn col, int row)
{
NSMutableDictionary dict = m_data.objectAtIndex((uint) row).To<NSMutableDictionary>();
dict.setObject_forKey(value, col.identifier());
DoUpdateChart();
}
示例2: tableView_setObjectValue_forTableColumn_row
public void tableView_setObjectValue_forTableColumn_row(NSTableView table, NSObject value, NSTableColumn col, int row)
{
Contract.Requires(row >= 0, "row is negative");
Contract.Requires(row < m_globs.Count, "row is too big");
switch (col.identifier().description())
{
case "1":
m_globs[row] = Tuple.Create(value.description(), m_globs[row].Item2);
break;
case "2":
m_globs[row] = Tuple.Create(m_globs[row].Item1, value.Call("intValue").To<int>());
break;
default:
Contract.Assert(false, "bad col: " + col.identifier());
break;
}
DoSyncPref();
}
示例3: tableView_objectValueForTableColumn_row
public NSObject tableView_objectValueForTableColumn_row(NSTableView table, NSTableColumn col, int row)
{
NSDictionary dict = m_data.objectAtIndex((uint) row).To<NSDictionary>();
return dict.objectForKey(col.identifier());
}
示例4: tableView_objectValueForTableColumn_row
public NSObject tableView_objectValueForTableColumn_row(NSTableView table, NSTableColumn col, int row)
{
Contract.Requires(row >= 0, "row is negative");
Contract.Requires(row < m_globs.Count, "row is too big");
switch (col.identifier().description())
{
case "1":
return NSString.Create(m_globs[row].Item1);
case "2":
return NSNumber.Create(m_globs[row].Item2);
default:
Contract.Assert(false, "bad col: " + col.identifier());
return NSString.Empty;
}
}
示例5: tableView_objectValueForTableColumn_row
public NSObject tableView_objectValueForTableColumn_row(NSTableView table, NSTableColumn col, int row)
{
if (m_threads.Count == 0 || !Debugger.IsRunning)
return NSString.Empty;
ThreadMirror thread = m_threads[row];
if (col.identifier().ToString() == "0")
{
string name;
if (m_names.TryGetValue(thread.Id, out name))
name = string.Format("{0} ({1})", name, thread.Id);
else
name = GetThreadName(thread);
return DoCreateString(name, row);
}
else if (col.identifier().ToString() == "1")
{
return DoCreateString(thread.ThreadState.ToString(), row);
}
else
{
return DoCreateString(thread.Domain.FriendlyName, row);
}
}
示例6: tableView_objectValueForTableColumn_row
public NSObject tableView_objectValueForTableColumn_row(NSTableView table, NSTableColumn col, int row)
{
if (m_stack == null)
return NSString.Empty;
row = m_stack.Length - row - 1; // draw the frames top down
LiveStackFrame frame = m_stack[row];
if (col.identifier().ToString() == "0")
return DoCreateString(System.IO.Path.GetFileName(frame.FileName), row);
else if (col.identifier().ToString() == "1")
if (frame.LineNumber >= 0)
return DoCreateString(frame.LineNumber.ToString(), row);
else
return DoCreateString(string.Empty, row);
else
return DoCreateString(frame.Method.GetFullerName(), row);
}
示例7: outlineView_objectValueForTableColumn_byItem
public NSObject outlineView_objectValueForTableColumn_byItem(NSOutlineView table, NSTableColumn col, TableItem item)
{
if (m_root == null)
return NSString.Empty;
if (col.identifier().ToString() == "1")
return item == null ? m_root.Name : item.Name;
else
return item == null ? m_root.Bytes : item.Bytes;
}
示例8: outlineView_objectValueForTableColumn_byItem
public NSObject outlineView_objectValueForTableColumn_byItem(NSOutlineView table, NSTableColumn col, VariableItem item)
{
NSObject value = null;
try
{
if (m_item != null)
{
if (col.identifier().ToString() == "0")
value = item == null ? m_item.AttributedName : item.AttributedName;
else if (col.identifier().ToString() == "1")
value = item == null ? m_item.AttributedValue : item.AttributedValue;
else
value = item == null ? m_item.AttributedType : item.AttributedType;
}
}
catch (Exception e)
{
if (!Debugger.IsShuttingDown(e))
throw;
}
return value;
}