2016-08-04 46 views
0
' Get a list of all notebooks in the user's account. 
    Dim myNotebookList As List(Of ENNotebook) = ENSession.SharedSession.ListNotebooks() 

    For Each item In myNotebookList 
     ListBox1.Items.Add(item) 
    Next 

這一切給了我是以下行的列表... Evernote的SDK ENNotebook有人會解釋如何讓筆記本列表到一個列表框

如何讓我的筆記本電腦的名稱顯示在列表框中。 使用VS2013

回答

1

這裏的筆記本對象的文檔:https://dev.evernote.com/doc/reference/Types.html#Struct_Notebook

正如你可以看到,有一個「名」屬性,這將使你的筆記本電腦的名稱。

所以,你的代碼應該是這樣的:

' Get a list of all notebooks in the user's account. 
 
    Dim myNotebookList As List(Of ENNotebook) = ENSession.SharedSession.ListNotebooks() 
 

 
    For Each item In myNotebookList 
 
     ListBox1.Items.Add(item.name) 
 
    Next

相關問題