コード例 #1
0
 public win2d_Textblock(Vector2 position, int width, int height, bool scrolltobottomonappend = false) : base(position, width, height)
 {
     Border  = new Rect(Position.X, Position.Y, Width, Height);
     Strings = new win2d_TextblockStringCollection(new Vector2(Position.X + PaddingX, Position.Y + PaddingY),
                                                   Width - PaddingY * 2,
                                                   Height - PaddingY * 2,
                                                   scrolltobottomonappend);
 }
コード例 #2
0
 public win2d_Textblock(Vector2 position, int width, int height, bool scrolltobottomonappend = false)
     : base(position, width, height)
 {
     Border = new Rect(Position.X, Position.Y, Width, Height);
     Strings = new win2d_TextblockStringCollection(new Vector2(Position.X + PaddingX, Position.Y + PaddingY),
                                                     Width - PaddingY * 2,
                                                     Height - PaddingY * 2,
                                                     scrolltobottomonappend);
 }