Public Class Grid '棋盤格子
Public Property Loc As Point '格子位置
Public Property Size As Size '格子大小
Public Property Cs As ChessPieces '棋子物件
End Class
Public Class ChessPieces '棋子
Public Property Loc As Rectangle '棋子位置和大小
Public Property colour As Color '棋子顏色
End Class
怎么給 Grid的Cs賦值

uj5u.com熱心網友回復:
這是vb.net吧?uj5u.com熱心網友回復:
完全沒有必要嵌套。如果 Grid 僅定義格子,就把 ChessPieces 刪掉。uj5u.com熱心網友回復:
這樣定義的方式有問題。轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/89628.html
標籤:VB基礎類
