C# Class RoundedRectView.RoundedRectView

Inheritance: UIView
显示文件 Open project: Krumelur/RoundedRectView Class Usage Examples

Public Properties

Property Type Description
RoundedBottomCorners UIRectCorner
RoundedLeftCorners UIRectCorner
RoundedRightCorners UIRectCorner
RoundedTopCorners UIRectCorner
eRoundedCorners UIRectCorner

Public Methods

Method Description
RoundedRectView ( ) : System

Initializes a new instance of the Test.RoundedRectView class.

RoundedRectView ( RectangleF rect ) : System

Initializes a new instance of the Test.RoundedRectView class.

RoundedRectView ( RectangleF rect, UIColor oBackgroundColor ) : System

Initializes a new instance of the Test.RoundedRectView class.

RoundedRectView ( RectangleF rect, UIColor oBackgroundColor, UIRectCorner eCornerFlags ) : System

Initializes a new instance of the Test.RoundedRectView class.

Private Methods

Method Description
UpdateMask ( ) : void

Updates the layer's mask. On iOS there are no springs/struts (no auto resizing) on CALayers. Therefore the mask has to be adjusted whenever the UIView's properties are changed.

Method Details

RoundedRectView() public method

Initializes a new instance of the Test.RoundedRectView class.
public RoundedRectView ( ) : System
return System

RoundedRectView() public method

Initializes a new instance of the Test.RoundedRectView class.
public RoundedRectView ( RectangleF rect ) : System
rect System.Drawing.RectangleF rectangle of the view
return System

RoundedRectView() public method

Initializes a new instance of the Test.RoundedRectView class.
public RoundedRectView ( RectangleF rect, UIColor oBackgroundColor ) : System
rect System.Drawing.RectangleF Rectangle of the view
oBackgroundColor UIColor background color
return System

RoundedRectView() public method

Initializes a new instance of the Test.RoundedRectView class.
public RoundedRectView ( RectangleF rect, UIColor oBackgroundColor, UIRectCorner eCornerFlags ) : System
rect System.Drawing.RectangleF Rectangle of the view
oBackgroundColor UIColor background color
eCornerFlags UIRectCorner rounded corners
return System

Property Details

RoundedBottomCorners public_oe static_oe property

public static UIRectCorner RoundedBottomCorners
return UIRectCorner

RoundedLeftCorners public_oe static_oe property

public static UIRectCorner RoundedLeftCorners
return UIRectCorner

RoundedRightCorners public_oe static_oe property

public static UIRectCorner RoundedRightCorners
return UIRectCorner

RoundedTopCorners public_oe static_oe property

public static UIRectCorner RoundedTopCorners
return UIRectCorner

eRoundedCorners public_oe property

The round corners. Default: all corners rounded.
public UIRectCorner eRoundedCorners
return UIRectCorner