コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DSoft.Datatypes.Formatters.DSImageFormatter"/> class.
 /// </summary>
 /// <param name="ImageSize">Image size.</param>
 public DSImageFormatter(DSSize ImageSize)
 {
     mSize = ImageSize;
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DSoft.Datatypes.Formatters.DSBooleanFormatter"/> class.
 /// </summary>
 /// <param name="Style">Style.</param>
 public DSBooleanFormatter(BooleanFormatterStyle Style)
 {
     mStyle = Style;
     mSize  = new DSSize(20, 20);
 }
コード例 #3
0
 /// <summary>
 /// Convert to sizef object
 /// </summary>
 /// <returns>SizeF</returns>
 /// <param name="Object">DSSize Object</param>
 public static CGSize ToSizeF(this DSSize Object)
 {
     return(new CGSize((nfloat)Object.Width, (nfloat)Object.Height));
 }