Description
Returns the vertical grid applied on the current layer or on the current master page. If the value exists on both layer and master, the layer value is returned. If the layer value is not set, or it is 0, the master value is returned.
If the globalUseModulesAsVg is true (by default it is true, unless you override it in the EditorialConfig), then it returns the value of Page.GetModH; else it returns the value of Page.GetVertGrid. If the calculated value is 0, then it uses the value of 10000mpt unless you override it in the EditorialConfig by adding a different value for glbVertGrid.
Syntax
Dim vg as Integer = GetVG() |
Code
public overridable function GetVG() As Integer
' returns vertical grid value, or EdConfig.glbVertGrid if not set on page
Dim iValue As Integer = CInt(IIf(globalUseModulesAsVg, Page.GetModH, Page.GetVertGrid))
If iValue = 0 Then iValue = EdConfig.glbVertGrid ' using the value from <Dict> node
Return iValue
End Function