Previous topicNext topic
Help > Methods >
GetShieldLevel

GetShieldLevel Method

returns the currently selected filtering level in the control (See SetShieldLevel Method)

Syntax

Ret = object.GetShieldLevel

The GetShieldLevel method syntax has these parts:

Element Description
Object The object placeholder represents an OrdoWebView2 control
Ret

oShieldFilterPower, the current filtering level
    oNone = 0
    oModerate = 1
    oMedium = 2
    oMax = 3
See remarks below for an example

Remarks     

  • To understand the filtering method :
    if the user consults the web
    page "https://freeware.ordoconcept.net/OrdoWebview2.php"
    the page site domain is "freeware.ordoconcept.net"

    • If Ret = oModerate ' (1) the control will only display the elements of the page whose URL contains "ordoconcept"

    • If Ret = oMedium ' (2) the control will only display the elements of the page whose URL contains "ordoconcept.net"

    • If Ret = oMax ' (3) the control will only display the elements of the page whose URL contains "freeware.ordoconcept.net"