ation的用法及属性解释
ControlsaninstanceofWindowsInternetExplorerthroughautomation.
MembersTable
Thefollowingtableliststhemembers
expodbytheInternetExplorerobject.
Events
Event
BeforeNavigate
Description
Firesbeforenavigationoccursinthe
givenobject(oneitherawindoworframetelement).
Firesbeforenavigationoccursinthe
givenobject(oneitherawindowelementoraframetelement).
Fireswhentheenabledstateofacommandchanges.
Fireswhenadocumentiscompletel客服话术大全 yloadedandinitialized.
Fireswhenanavigationoperationbegins.
Fireswhenanavigationoperationfinishes,ishalted,orfails.
Firestoindicatethatafiledownloadis
edownloaddialog
boxcanbedisplayed,thiventfires
priortotheappearanceofthedialogbox.
Firesafteranavigationtoalinkis
completedoneitherawindowelementor
aframeSetelement.
Firesafteranavigationtoalinkis
BeforeNavigate2
CommandStateChange
DocumentComplete
DownloadBeginDownloadComplete
FileDownload
NavigateComplete
NavigateComplete2
completedonawindowelement
aframeSetelement.
NavigateError
or
Fireswhenanerroroccursduringnavigation.
Createsanewprocesstohandlethenavigation.
Fireswhenanewwindowistobecreated.
Fireswhenanewwindowistobecreated.
Raidwhenanewwindowistobecreated.
ExtendsNewWindow2withadditional
informationaboutthenewwindow.
FireswhentheFullScreenpropertyischanged.
FireswhentheMenuBarpropertyischanged.
FiresbeforetheInternetExplorerapplicationquits.
FireswhentheStatusBarpropertyischanged.
FireswhentheTheaterModepropertyischanged.
FireswhentheToolBarpropertyischanged.
FireswhentheVisiblepropertyof
theobjectischanged.
template
is
NewProcess
NewWindow
NewWindow2NewWindow3
OnFullScreen
OnMenuBar
OnQuit
OnStatusBar
OnTheaterMode
OnToolBar
OnVisible
PrintTemplateInstantiationFireswhen包桌菜单 a
emplateTeardown
Fireswhenaprinttemplateisdestroyed.
PrivacyImpactedStateChange
Firedwhenaneventoccursthatimpacts
privacy,orwhenaurnavigatesaway
ssChange
Fireswhentheprogressofadownload
operationisupdatedontheobject.
FireswhenthePutPropertymethodof
theobjectchangesthevalueofaproperty.
Firedwhenacross-domainredirectrequestisblocked.
Firestoindicatetheprogressandstatus
ofMicrosoftPhishingFilteranalysisofthecurrentwebpage.
Fireswhenthereisachangeinencryptionlevel.
Fireswhenthestatusbartextof
theobjecthaschanged.
Firedwhenathird-partyURLisblocked.
Fireswhenthetitleofadocumentin
theobjectbecomesavailableor
changes.
Notimplemented.
Notimplemented.
lemented.
Fireswhenthevisibilitystateofa
contentwindow,suchasthebrowrwindoworatab,changes.
PropertyChange
RedirectXDomainBlocked
SetPhishingFil元宵节的来历简介 terStatus
SetSecureLockIcon
StatusTextChange
ThirdPartyUrlBlockedTitleChange
UpdatePageStatus
WindowActivate
WindowMove
WindowResizeWindowStateChanged
Methods
MethodDescription
ClientToWindowComputesthefullsizeofthebrowrwindowwhen
giventhespecifiedwidthandheightofthecontent
Executesacommandandreturnsthestatusofthe
commandexecutionusing
theIOleCommandTargetinterface.
Getsthevalueassociatedwithaur-definedpropertyname.
Navigatesbackwardoneiteminthehistorylist.
Navigatesforwardoneiteminthehistorylist.
testothecurrentarchpage.
NavigatestoaresourceidentifiedbyaURLortoafileidentifiedbyafullpath.
Navigatesthebrowrtoalocationthatmightnotbe
expresdasaURL,suchasapointertoanitem
identifierlist(PIDL)foranentityintheWindowsShellnamespace.
Associatesaur-definedname/valuepairwith
theobject.
GetProperty
GoBack
GoForward
GoHome
GoSearchNavigate
Navigate2
PutProperty
QueryStatusWBQueriestheobjectforthestatusofcommandsusing
theIOleCommandTargetinterface.
QuitRefresh
Clostheobject.
Reloadsthefilethatiscurrentlydisplayedin
theobject.
Reloadsthefilethatiscurrentlydisplayedwiththespecifiedrefreshlevel.
Refresh2
ShowBrowrBarShowsorhidesaspecifiedbrowrbar.
Stop
Cancelsapendingnavigationordownload,andstops
dynamicpageelements,suchasbackgro儿童简笔画小兔子 undsoundsandanimations.
Properties
Property
AddressBar
Description
Setsorgetsavaluethatindicateswhetherthe
addressbaroftheobjectisvisibleorhidden.
Getstheautomationobjectfortheapplication
thatishostingtheWebBrowrControl.
Getsavaluethatindicateswhether
theobjectingagedinanavigationordownloadingoperation.
Getsanobjectreferencetoacontainer.
Getstheautomationobjectoftheactivedocument,ifany.
RetrievesthefullyqualifiedpathoftheInternetExplorerexecutable.
Setsorgetsavaluethatindi瘦人增肥方 cateswhether
InternetExplorerisinfull-screenmodeornormalwindowmode.
Setsorgetstheheightoftheobject.
GetsthehandleoftheInternetExplorermainwindow.
Setsorgetsthecoordinateoftheleftedgeof
theobject.
Retrievesthepathortitleoftheresourcethatiscurrentlydisplayed.
GetstheURLoftheresourcethatiscurrently
Application
Busy
ContainerDocument
FullName
FullScreen
HeightHWND
Lef山药炖羊排 t
LocationName
LocationURL
displayed.
MenuBar
SetsorgetsavaluethatindicateswhethertheInternetExplorermenubarisvisible.
Retrievestheframenameorapplicationnameof
theobject.
Sets魔兽3秘籍 orgetsavaluethatindicateswhether
theobjectisoperatinginofflinemode.
Getstheparentoft尊重的故事 heobject.
RetrievesthesystemfolderoftheInternetExplorerexecutable.
Getsthereadystateoftheobject.
Setsorgetsavaluethatindicateswhether
theobjectisregisteredasatop-levelbrowrwindow.
Name
Offline
ParentPath
ReadyStateRegisterAsBrowr
RegisterAsDropTargetSetsorgetsavaluethatindicateswhether
theobjectisregisteredasadroptargetfor
ble
Setsorgetsavaluethatindicateswhether
theobjectcanberesized.
Setsorgetsavaluethatindicateswhether
theobjectcandisplaydialogboxes.
Setsorgetsavaluethatindicateswhetherthe
statusbarfortheobjectisvisible.
Setsorgetsthetextinthestatusbarfor
theobject.
Setsorgetswhethertheobjectisintheatermode.
Setsorgetswhether
theobjectarevisible.
toolbars
for
Silent
StatusBar
StatusText
TheaterMode
ToolBar
Top
Setsorgetsthecoordinateofthetopedgeof
theobject.
Getsavaluethatindicateswhether
theobjectisatop-levelcontainer.
Getstheurtypenameofthecontaineddocumentobject.
Setsorg如何做自我介绍 etsavaluethatindicateswhether
theobjectisvisibleorhidden.
Setsorgetsthewidthoftheobject.
TopLevelContainer
Type
Visible
Width
Remarks
owsVista,
tocreateaninstanceofInternetExplorer
runningatamediumintegritylevel,
passCLSID_InternetExplorerMedium(defi
)
resultingInternetExplorerMediumobjec
tsupportsthesameevents,methods,and
propertiesastheInternetExplorerobject.
Examples
The
following
exampleVisual
usCreateObjectinExplorer.
etExplorer
SetIE=CreateObject("ation")
ThefollowingC#examplelaunchesan
Microsoft
BasictolaunchaninstanceofInternet
instanceofInternetExplorerandnavigates
ealso
demonstrateshowtocreateaneventhandler
to
listen
for
ject
requiresareferencetotheMicrosoftInternetControls(SHDocVw)typelibrary.
usingSystem;
c;
;
namespaceConsoleApplication1{
classEventHandlers{
publicvoidOnBeforeNavigate2(objectnder,refobjectURL,
refobjectFlags,refobjectTarget,
refobjectPostData,refobjectHeaders,
refboolCancel){
ine("BeforeNavigate2fired!");
}
}
classProgram{
staticvoidMain(string[]args)
{
EventHandler=newEventHandlers();
etExplorerIE=etExplorer();
objectEmpty=0;
objectURL="";
//Navigate2+=new
owrEvents2_BeforeNavigate2EventHandler(
reNavigate2);
e=true;
te2(refURL,refEmpty,refEmpty,refEmpty,refEmpty);
(5000);
();
}
}}
ObjectInformation
CLSID
MinimumavailabilityMinimumoperatingsystems
CLSID_InternetExplorer
InternetExplorer4.0
Windows98,WindowsCE4.0
本文发布于:2023-04-14 01:19:54,感谢您对本站的认可!
本文链接:https://www.wtabcd.cn/fanwen/fan/90/93209.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |