コード例 #1
0
        public static void GenerateWidthOrHeightEnum(CodeBlockNamespace namespaceContents)
        {
            var enumBlock = namespaceContents.Enum("public", "WidthOrHeight");

            enumBlock.Line("Width,");
            enumBlock.Line("Height");
        }
コード例 #2
0
        private static void GenerateResizeBehaviorEnum(CodeBlockNamespace namespaceContents)
        {
            var enumBlock = namespaceContents.Enum("public", "ResizeBehavior");

            enumBlock.Line("StretchVisibleArea,");
            enumBlock.Line("IncreaseVisibleArea");
        }