理解對(duì)象、屬性和方法-------英文文獻(xiàn)及譯文.doc
約10頁DOC格式手機(jī)打開展開
理解對(duì)象、屬性和方法-------英文文獻(xiàn)及譯文,object, attribute and method are understoodthe object is the structure foundation of visual basic, and all operations being in progress in visual basic are almo...
內(nèi)容介紹
此文檔由會(huì)員 wanli1988go 發(fā)布
Object, attribute and method are understood
The object is the structure foundation of Visual Basic, and all operations being in progress in Visual Basic are almost all related with the modification object. Like civilian shelves, table, paragraph, title label pasted on the cover of a thread-bound book and land within certain boundaries etc, all the object among the available Visual Basic is expressed the any element of Microsoft WORD. What is object and gathering? The object represents WORD's element, like the character of civilian shelves, paragraph, title label pasted on the cover of a thread-bound book or alone. Gathering also is an object, and this object contains many other objects, usually these objects belong to the identical type; Such as, one is gathered in the object can to contain all title label pasted on the cover of a thread-bound book objects in the civilian shelves. By way of using attribute and method, the object can revised by oneself also can be revised the whole object gathering. What is the attribute?
The attribute is the one kind of specific property of object or an aspect of this object action. Such as, the civilian shelves attributies contain his name, content, preserve the state as well as whether or not to start using the revision. His attribute value can be revised as if changing the characteristic of object.
理解對(duì)象、屬性和方法
對(duì)象是 Visual Basic 的結(jié)構(gòu)基礎(chǔ),在 Visual Basic 中進(jìn)行的所有操作幾乎都與修改對(duì)象有關(guān)。Microsoft WORD 的任何元素,如文檔、表格、段落、書簽、域等,都可用 Visual Basic 中的對(duì)象來表示。
什么是對(duì)象和集合?
對(duì)象代表一個(gè) WORD 元素,如文檔、段落、書簽或單獨(dú)的字符。集合也是一個(gè)對(duì)象,該對(duì)象包含多個(gè)其他對(duì)象,通常這些對(duì)象屬于相同的類型;例如,一個(gè)集合對(duì)象中可包含文檔中的所有書簽對(duì)象。通過使用屬性和方法,可以修改單獨(dú)的的對(duì)象,也可修改整個(gè)的對(duì)象集合。
什么是屬性?
屬性是對(duì)象的一種特性或該對(duì)象行為的一個(gè)方面。例如,文檔屬性包含其名稱、內(nèi)容、保存狀態(tài)以及是否啟用修訂。若要更改一個(gè)對(duì)象的特征,可以修改其屬性值。
若要設(shè)置屬性的值,可在對(duì)象的后面緊接一個(gè)句號(hào)、屬性名稱、一個(gè)等號(hào)及新的屬性值。下列示例在名為“MyDoc.doc”的文檔中啟用修訂。
Sub TrackChanges()
Documents("Sales.doc").TrackRevisions = True
End Sub
在本示例中,Documents 引用由打開的文檔構(gòu)成的集合,而“MyDoc.doc”標(biāo)識(shí)集合中單獨(dú)的文檔。并設(shè)置該文檔的 TrackRevisions 屬性。
不能設(shè)置某些屬性。屬性的“幫助”主題中會(huì)標(biāo)明可以設(shè)置該屬性(可讀寫),或只能讀取該屬性(只讀)。
The object is the structure foundation of Visual Basic, and all operations being in progress in Visual Basic are almost all related with the modification object. Like civilian shelves, table, paragraph, title label pasted on the cover of a thread-bound book and land within certain boundaries etc, all the object among the available Visual Basic is expressed the any element of Microsoft WORD. What is object and gathering? The object represents WORD's element, like the character of civilian shelves, paragraph, title label pasted on the cover of a thread-bound book or alone. Gathering also is an object, and this object contains many other objects, usually these objects belong to the identical type; Such as, one is gathered in the object can to contain all title label pasted on the cover of a thread-bound book objects in the civilian shelves. By way of using attribute and method, the object can revised by oneself also can be revised the whole object gathering. What is the attribute?
The attribute is the one kind of specific property of object or an aspect of this object action. Such as, the civilian shelves attributies contain his name, content, preserve the state as well as whether or not to start using the revision. His attribute value can be revised as if changing the characteristic of object.
理解對(duì)象、屬性和方法
對(duì)象是 Visual Basic 的結(jié)構(gòu)基礎(chǔ),在 Visual Basic 中進(jìn)行的所有操作幾乎都與修改對(duì)象有關(guān)。Microsoft WORD 的任何元素,如文檔、表格、段落、書簽、域等,都可用 Visual Basic 中的對(duì)象來表示。
什么是對(duì)象和集合?
對(duì)象代表一個(gè) WORD 元素,如文檔、段落、書簽或單獨(dú)的字符。集合也是一個(gè)對(duì)象,該對(duì)象包含多個(gè)其他對(duì)象,通常這些對(duì)象屬于相同的類型;例如,一個(gè)集合對(duì)象中可包含文檔中的所有書簽對(duì)象。通過使用屬性和方法,可以修改單獨(dú)的的對(duì)象,也可修改整個(gè)的對(duì)象集合。
什么是屬性?
屬性是對(duì)象的一種特性或該對(duì)象行為的一個(gè)方面。例如,文檔屬性包含其名稱、內(nèi)容、保存狀態(tài)以及是否啟用修訂。若要更改一個(gè)對(duì)象的特征,可以修改其屬性值。
若要設(shè)置屬性的值,可在對(duì)象的后面緊接一個(gè)句號(hào)、屬性名稱、一個(gè)等號(hào)及新的屬性值。下列示例在名為“MyDoc.doc”的文檔中啟用修訂。
Sub TrackChanges()
Documents("Sales.doc").TrackRevisions = True
End Sub
在本示例中,Documents 引用由打開的文檔構(gòu)成的集合,而“MyDoc.doc”標(biāo)識(shí)集合中單獨(dú)的文檔。并設(shè)置該文檔的 TrackRevisions 屬性。
不能設(shè)置某些屬性。屬性的“幫助”主題中會(huì)標(biāo)明可以設(shè)置該屬性(可讀寫),或只能讀取該屬性(只讀)。
TA們正在看...
- 北師大版小學(xué)語文二年級(jí)上冊(cè)說課稿賀年片.docx
- 北師大版小學(xué)語文二年級(jí)下冊(cè)說課稿一片樹葉.docx
- 北師大版小學(xué)語文二年級(jí)下冊(cè)說課稿快樂的節(jié)日.docx
- 北師大版小學(xué)語文二年級(jí)下冊(cè)說課稿美麗的武夷山.docx
- 北師大版小學(xué)語文二年級(jí)下冊(cè)說課稿藍(lán)樹葉.docx
- 北師大版小學(xué)語文二年級(jí)下冊(cè)說課稿遠(yuǎn)行_什么.docx
- 北師大版小學(xué)語文二年級(jí)下冊(cè)說課稿遠(yuǎn)行靠什么.docx
- 北師大版小學(xué)語文二年級(jí)下冊(cè)說課稿駱駝和羊.docx
- 北師大版小學(xué)語文五年級(jí)上冊(cè)《圓明園的毀滅》說課稿.docx
- 北師大版小學(xué)語文五年級(jí)上冊(cè)《地震中的父與子》說...docx