C# Class Sample.SampleOwnerDrawnElement

This is an example of implementing the OwnerDrawnElement abstract class. It makes it very simple to create an element that you draw using CoreGraphics
Inheritance: MonoMobile.Dialog.OwnerDrawnElement
Afficher le fichier Open project: moljac/MonoMobile.Dialog

Méthodes publiques

Méthode Description
Draw ( RectangleF bounds, CGContext context, UIView view ) : void
FormatDate ( System.DateTime date ) : string
Height ( RectangleF bounds ) : float
SampleOwnerDrawnElement ( string text, System.DateTime sent, string from ) : System
ToString ( ) : string

Private Methods

Méthode Description
TextHeight ( RectangleF bounds ) : float

Method Details

Draw() public méthode

public Draw ( RectangleF bounds, CGContext context, UIView view ) : void
bounds System.Drawing.RectangleF
context CGContext
view UIView
Résultat void

FormatDate() public méthode

public FormatDate ( System.DateTime date ) : string
date System.DateTime
Résultat string

Height() public méthode

public Height ( RectangleF bounds ) : float
bounds System.Drawing.RectangleF
Résultat float

SampleOwnerDrawnElement() public méthode

public SampleOwnerDrawnElement ( string text, System.DateTime sent, string from ) : System
text string
sent System.DateTime
from string
Résultat System

ToString() public méthode

public ToString ( ) : string
Résultat string