C # operating with COM components ie browser (iii): Understanding IHTMLDocument2

Source: Internet
Author: User

IHTMLDocument2 method Description
Write Write
Writeln Write and line Wrap
Open Open a stream to collect the output of document.write or Document.writeln
Close Closes and outputs a stream opened with the Document.open method
Clear Clears all elements of the document and may not be supported temporarily
querycommandsupported Whether to support the specified command
queryCommandEnabled Specifies whether the command is valid
Querycommandstate Whether the specified command is set
Querycommandindeterm Specifies whether the command is in an indeterminate state
Querycommandtext Command
Querycommandvalue Command value
ExecCommand Execute command
execCommandShowHelp Command Help information
CreateElement Building elements
elementFromPoint Elements under the specified coordinates
createStyleSheet Create a style sheet
IHTMLDocument2 Property Description
All A collection of all HTML elements
Images A collection of all image objects
Applets A collection of all applet objects
Links A collection of all link objects
Forms A collection of all form objects
Anchors A collection of all anchor objects
Scripts A collection of all script objects
Frames A collection of all frame objects
Embeds A collection of all embed objects
Plugins
All Plugin
StyleSheets
Style Sheet Collection
Title
Page title
Body
Body Object
Activeelement
element that currently has input focus
DesignMode
design mode, selectable value: Inherit on OFF
Selection
Current selection
ReadyState
Page read status: Uninitialized, loading, loaded, interactive, completed
LinkColor
The color of the link
Color of the active link
Vlinkcolor
The color of the link that has been visited
BgColor
Background color
Fgcolor
Text color
Referrer
Returns the URL of the page loaded into the current page
Location
With Window.location
LastModified
Returns the date and time when the document was last modified
Url
Returns the URL of the current document
Domain
Return domain name
Cookies
Return document-related cookies
expando
A Boolean value that can be set and obtained, whether the extension is allowed
CharSet
Gets the character set name of the document
Defaultcharset
Get the default character set name for the browser
MimeType
Document type
FileSize
Document size, unit byte, expressed as a string
Filecreateddate
Document Settling Time
Filemodifieddate
Document modification Time
Fileupdateddate
Document Update Time
Security
Document Security
Protocol
Transport protocol
ParentWindow
Parent window
IHTMLDOCUMENT3 Events Description
OnHelp When you get help with F1
Onlick When clicked
OnDblClick
When you double-click
OnMouseDown
When the mouse point is down
When the mouse lifts up
OnMouseMove
When the mouse moves
onmouseover
When the mouse enters
onmouseout
When the mouse leaves
onkeypress
When you press the key
OnKeyUp
When the key is lifted
OnKeyDown
When the state changes
onReadyStateChange
When the data for the current data source is going to change
onrowexit
When the data in the current data source changes and there is new data
onrowenter
When you start dragging
Ondragstart
When you start the selection
Onselectstart
Before update
onbeforeupdate
After the update
onafterupdate
When an error is updated

C # operating with COM components ie browser (iii): Understanding IHTMLDocument2

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.