aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/ExtensionsMethods.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-03-04 14:46:02 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-03-04 14:46:02 +0100
commit4492fa1bccc93616831ddeec76e8c26116d183e4 (patch)
tree8ecec7b8eaa2e3db641855aec2b36b3d698bfa1a /src/ExtensionsMethods.cs
parent90a024039580f2c097f727a277166582bf4abf7f (diff)
docker wip
Diffstat (limited to 'src/ExtensionsMethods.cs')
-rw-r--r--src/ExtensionsMethods.cs3
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)