Beispiel #1
0
        public FastGridBlockImpl AddTextBlock(object text)
        {
            var res = new FastGridBlockImpl
            {
                BlockType = FastGridBlockType.Text,
                TextData  = text == null ? null : text.ToString(),
            };

            Blocks.Add(res);
            return(res);
        }
Beispiel #2
0
        public FastGridBlockImpl AddImageBlock(string image, int width = 16, int height = 16)
        {
            var res = new FastGridBlockImpl
            {
                BlockType   = FastGridBlockType.Image,
                ImageWidth  = width,
                ImageHeight = height,
                ImageSource = image,
            };

            Blocks.Add(res);
            return(res);
        }