If you manually set any of the ChartRegion properties Height, Width, X, or Y, the Location will be set to NotDocked.
If you manually set
Location to be a
LegendLocation other than LegendLocation.NotDocked, the legend will be docked and Excel will position the legend accordingly. There are subtle differences in how Excel displays the legend, especially when expanding or shrinking the chart, so the
Height properties do not have meaning for a docked legend.
Vertical property does not correspond to a specific feature in Excel. It approximates new width and height values so that the legend entries are stacked vertically or horizontally.