Changeset 473 for trunk/Include/Classes/System/Drawing/RectangleF.ab
- Timestamp:
- Mar 12, 2008, 9:54:46 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Include/Classes/System/Drawing/RectangleF.ab
r335 r473 1 1 ' Classes/System/Drawing/RectangleF.ab 2 2 3 #ifndef __SYSTEM_DRAWING_RECTANGLEF_AB__ 4 #define __SYSTEM_DRAWING_RECTANGLEF_AB__ 5 6 '#include <Classes/System/Math.ab> 7 #include <Classes/System/Drawing/PointF.ab> 8 #include <Classes/System/Drawing/SizeF.ab> 3 Namespace System 4 Namespace Drawing 9 5 10 6 Class RectangleF … … 39 35 40 36 Function Location() As PointF 41 Dim pt As PointF(x, y) 42 Return pt 37 Location = New PointF(x, y) 43 38 End Function 44 39 … … 49 44 50 45 Function Size() As SizeF 51 Dim size AsSizeF(width, height)46 Size = New SizeF(width, height) 52 47 End Function 53 48 … … 58 53 59 54 Function X() As Single 60 Returnx55 X = x 61 56 End Function 62 57 … … 66 61 67 62 Function Y() As Single 68 Returny63 Y = y 69 64 End Function 70 65 … … 74 69 75 70 Function Width() As Single 76 Returnwidth71 Width = width 77 72 End Function 78 73 … … 82 77 83 78 Function Height() As Single 84 Returnheight79 Height = height 85 80 End Function 86 81 … … 90 85 91 86 Function Left() As Single 92 ReturnX87 Left = X 93 88 End Function 94 89 95 90 Function Top() As Single 96 ReturnY91 Top = Y 97 92 End Function 98 93 99 94 Function Right() As Single 100 R eturnX + Width95 Right = X + Width 101 96 End Function 102 97 103 98 Function Bottom() As Single 104 ReturnY + Height99 Bottom = Y + Height 105 100 End Function 106 101 … … 210 205 End Class 211 206 212 #endif '__SYSTEM_DRAWING_RECTFANGLE_AB__ 207 End Namespace 208 End Namespace
Note:
See TracChangeset
for help on using the changeset viewer.