是否有一个标准的c#类定义了一个名义上的左,右,上和下?
我应该使用自己的吗?
enum controlAlignment
{
left = 1,
top,
right,
bottom,
none = 0
}
Run Code Online (Sandbox Code Playgroud)
Cer*_*rus 20
快速搜索显示以下Framework Enumerations已经拥有这些成员(其中一些还有其他成员):
Kna*_*bax 10
一个很好的枚举也可能是:
System.Drawing中.ContentAlignment(在System.Drawing.dll中)
这些是其成员:
public enum ContentAlignment
{
TopLeft = 1,
TopCenter = 2,
TopRight = 4,
MiddleLeft = 16,
MiddleCenter = 32,
MiddleRight = 64,
BottomLeft = 256,
BottomCenter = 512,
BottomRight = 1024,
}
Run Code Online (Sandbox Code Playgroud)