下列定义画笔对象p的语句中,正确的是___________。
A: Dim p As new Pen = Color.Red
B: Dim p As Pen = New Pen(Color.Red, 3)
C: Dim p As new Pen = Pen(Color.Red,1)
D: Dim p As Pen(Color.Black)
E: Dim p = Pen(Color.Black,2)
A: Dim p As new Pen = Color.Red
B: Dim p As Pen = New Pen(Color.Red, 3)
C: Dim p As new Pen = Pen(Color.Red,1)
D: Dim p As Pen(Color.Black)
E: Dim p = Pen(Color.Black,2)
举一反三
- 正确定义画笔的语句是: A: Pen p = new Pen(); B: Pen p = new Pen(3); C: Pen p = new Pen(Color.Red, 3); D: 都不对
- 定义一个画笔对象,下列哪项错误() A: Pen myPen=new Pen(Color.Red) B: Pen myPen=new Pen(new SolidBrush(Color.Red)) C: Pen myPen=new Pen(Color.Red,5) D: Pen myPen=new Pen(new Bitmap(“e:\\1.jpg”))
- 下列哪一项是CSS样式的正确的语法结构? A: {p:color=red(body)} B: p:color=red C: {p;color:red} D: p{color:red;}
- 下列css语法结构,完全正确的是() A: p{font-size:12;color:red;} B: p{font-size:12;color:#red;} C: p{font-size:12px;color:red;} D: p{font-size:12px;color:#red;}
- 下列哪种方式是用class选择器定义样式的 A: p{color: red} B: p,h1{color: red} C: . one{color: red} D: E: two{color: red}