Notes for Margins

Top  Previous 

Four margin properties - MarginTopLeft (1), MarginTopRight (2), MarginBottomLeft (3), and MarginBottomRight (4) - determine how the layout is implemented.

Notes_For_Margins

 

 

For the sake of simplicity, we define a few variables below:

•Top-Sum = MarginTopLeft (1) + MarginTopRight (2)

•Bottom-Sum = MarginBottomLeft (3) + MarginBottomRight (4)

•Left-Diff = MarginTopLeft (1) - MarginBottomLeft (3)

•Right-Diff = MarginBottomRight (4) - MarginTopRight (2)

 

Good_Line

 

If the GridLaytout property is Lake_Baikal, all 4 margins become irrelevant and are internally set to 0.

 

Good_Line

 

If the GridLaytout property is Lake_Como, the following conditions must hold true.

•Both Top-Sum and Bottom-Sum can't be greater than 50.

•At least one of Top-Sum and Bottom-Sum can't be less than 2.

 

Otherwise, margins will be internally set to the defaults below:

•MarginTopLeft (1) = 5

•MarginTopRight (2)  = 0

•MarginBottomLeft (3) = 0

•MarginBottomRight (4)  = 5

 

Good_Line

 

If the GridLaytout property is either Lake_Geneva or Lake_Saimaa, the following conditions must hold true.

•Both Top-Sum and Bottom-Sum can't be greater than 50.

•Both Top-Sum and Bottom-Sum can't be less than 2.

•Left-Diff must be equal to Right-Diff.

 

Otherwise, margins will be internally set to the defaults below:

•MarginTopLeft (1) = 5

•MarginTopRight (2)  = 0

•MarginBottomLeft (3) = 0

•MarginBottomRight (4)  = 5

 

Good_Line

 

If the GridLaytout property is either Moraine_Lake or Plitvice_Lakes, the following conditions must hold true.

•Both Top-Sum and Bottom-Sum can't be greater than 50.

•Both Top-Sum and Bottom-Sum can't be less than 2.

•Both Left-Diff and Right-Diff must be equal to 0.

 

Otherwise, margins will be internally set to the defaults below:

•MarginTopLeft (1) = 5

•MarginTopRight (2)  = 5

•MarginBottomLeft (3) = 5

•MarginBottomRight (4)  = 5