ActionScript: процедурный / ООП
function f(n) {
var result = n>1 ? arguments.callee(n-1)*n : 1;
return result;
}
// function call
f(3);
If you're looking for "in-place" editing of a ListView
's contents (specifically the subitems of a ListView in details view mode), you'll need to implement this yourself, or use a third-party control.
By default, the best you can achieve with a "standard" ListView
is to set it's LabelEdit
property to true to allow the user to edit the text of the first column of the ListView
(assuming you want to allow a free-format text edit).
Some examples (including full source-code) of customized ListView
's that allow "in-place" editing of sub-items are:
Извините, у меня недостаточно репутации, иначе я бы прокомментировал ответ CraigTP .
Я нашел решение по 1-й ссылке - C # Editable ListView , довольно простое в использовании. Общая идея состоит в следующем:
SubItem
, который был выбран, и наложить TextBox
с текстом SubItem
поверх SubItem
TextBox
focus SubItem
на текст TextBox
, когда TextBox
теряет фокус Какой способ обхода, казалось бы, простой операции: - |