Sorry that does seem confusing. The issue is the difference between logical And/Or and bitwise And/Or.
The Anchor property (and some other properties) are bit masks. If you were to look at their values as binary numbers, you would see specific bits were to 0 to indicate a value is not set and 1 to indicate that a bit is set. So when you set Anchor = Left, for example, that sets the bit for Left.
To set more than one bit, you use Or to combine the values. For example, setting Anchor = Bottom or Right means to set the binary value so a bit is set if the corresponding bit in either the Bottom or Right value is set. If Bottom is 00001000 and Right is 00000010 (they aren't--this is just an example) then the result would be 00001010.
So the way you make the logical statement "anchored to the bottom and right" to be true is you use the bitwise Or operator to set both of the bits in the Anchor property.
Let me know if that's unclear and I'll try to explain it from a different angle.
|