public static bool ReplaceWith(InvokeListCursorDirection selection) { if (selection == InvokeListCursorDirection.Unspecified) { throw new ArgumentException("Selection cannot be \"Unspecified\"", "selection"); } else if (!selection.IsValidValue()) { throw new ArgumentException("Unsupported selection value", "selection"); } Util.GetBPSOrException(); return navigator_invoke_select_list_item(selection) == BPS.BPS_SUCCESS; }
public static bool ReplaceWith(InvokeListCursorDirection selection) { if (selection == InvokeListCursorDirection.Unspecified) { throw new ArgumentException("Selection cannot be \"Unspecified\"", "selection"); } else if (!selection.IsValidValue()) { throw new ArgumentException("Unsupported selection value", "selection"); } Util.GetBPSOrException(); return(navigator_invoke_select_list_item(selection) == BPS.BPS_SUCCESS); }
private static extern int navigator_invoke_select_list_item(InvokeListCursorDirection selection);