diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-03-04 14:46:02 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-03-04 14:46:02 +0100 |
| commit | 6df32af090b1fc7f99ce5852523766dd012b9f19 (patch) | |
| tree | 67a2cc2fb5886e3a0e08a4a0a0fbd91310f0ed58 /src/ExtensionsMethods.cs | |
| parent | 18df3ae84c00c5a951e1d0ff1ccabe2e6102bfb0 (diff) | |
docker wip
Diffstat (limited to 'src/ExtensionsMethods.cs')
| -rw-r--r-- | src/ExtensionsMethods.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ExtensionsMethods.cs b/src/ExtensionsMethods.cs index 6697be62..dfb90f0e 100644 --- a/src/ExtensionsMethods.cs +++ b/src/ExtensionsMethods.cs @@ -106,6 +106,9 @@ namespace Crow } #endregion + public static Orientation GetOrientation(this Alignment a){ + return (a==Alignment.Left) ||(a==Alignment.Right) ? Orientation.Horizontal : Orientation.Vertical; + } public static void Raise(this EventHandler handler, object sender, EventArgs e) { if(handler != null) |