Exemplo n.º 1
0
        public static string LocalizedStringFromNumber(double number, NSNumberFormatterStyle style)
        {
            IntPtr handle = ObjC.ToNSNumber(number);
            string text   = ObjC.MessageSendString(_classHandle, Selector.GetHandle("localizedStringFromNumber:numberStyle:"), handle, (int)style);

            ObjC.MessageSend(handle, Selector.ReleaseHandle);
            return(text);
        }
Exemplo n.º 2
0
        public string StringFromNumber(double number)
        {
            IntPtr handle = ObjC.ToNSNumber(number);
            string text   = ObjC.MessageSendString(Handle, Selector.GetHandle("stringFromNumber:"), handle);

            ObjC.MessageSend(handle, Selector.ReleaseHandle);
            return(text);
        }
Exemplo n.º 3
0
        public string StringFromNumber(double number)
        {
            IntPtr intPtr = ObjC.ToNSNumber(number);
            string result = ObjC.MessageSendString(Handle, Selector.GetHandle("stringFromNumber:"), intPtr);

            ObjC.MessageSend(intPtr, Selector.ReleaseHandle);
            return(result);
        }
Exemplo n.º 4
0
 public virtual string Abbreviation()
 {
     return(ObjC.MessageSendString(Handle, Selector.GetHandle("abbreviation")));
 }
Exemplo n.º 5
0
 public string Abbreviation(DateTime date)
 {
     return(ObjC.MessageSendString(Handle, Selector.GetHandle("abbreviationForDate:"), date));
 }
Exemplo n.º 6
0
 public string LocalizedString(string key, string value = "", string table = "")
 {
     return(ObjC.MessageSendString(Handle, Selector.GetHandle("localizedStringForKey:value:table:"), key, value, table));
 }
Exemplo n.º 7
0
 public string ButtonTitle(int index)
 {
     return(ObjC.MessageSendString(Handle, Selector.GetHandle("buttonTitleAtIndex:"), index));
 }