CompoundButton Конструкторы

Определение

Перегрузки

Имя Описание
CompoundButton(Context)

Инициализирует новый экземпляр.

CompoundButton(Context, IAttributeSet)

Инициализирует новый экземпляр.

CompoundButton(IntPtr, JniHandleOwnership)

Конструктор, используемый при создании управляемых представлений объектов JNI; вызывается средой выполнения.

CompoundButton(Context, IAttributeSet, Int32)

Инициализирует новый экземпляр.

CompoundButton(Context, IAttributeSet, Int32, Int32)

Инициализирует новый экземпляр.

CompoundButton(Context)

Инициализирует новый экземпляр.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")]
public CompoundButton(Android.Content.Context? context);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")>]
new Android.Widget.CompoundButton : Android.Content.Context -> Android.Widget.CompoundButton

Параметры

context
Context

Контекст, используемый для доступа к ресурсам и службам приложений.

Атрибуты

Комментарии

Части этой страницы — это изменения на основе работы, созданной и общей Project и используемых в соответствии с условиями, описанными в разделе "".

Применяется к

CompoundButton(Context, IAttributeSet)

Инициализирует новый экземпляр.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;)V", "")]
public CompoundButton(Android.Content.Context? context, Android.Util.IAttributeSet? attrs);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;)V", "")>]
new Android.Widget.CompoundButton : Android.Content.Context * Android.Util.IAttributeSet -> Android.Widget.CompoundButton

Параметры

context
Context

Контекст, используемый для доступа к ресурсам и службам приложений.

attrs
IAttributeSet

Атрибуты, предоставленные из XML.

Атрибуты

Комментарии

Части этой страницы — это изменения на основе работы, созданной и общей Project и используемых в соответствии с условиями, описанными в разделе "".

Применяется к

CompoundButton(IntPtr, JniHandleOwnership)

Конструктор, используемый при создании управляемых представлений объектов JNI; вызывается средой выполнения.

protected CompoundButton(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Widget.CompoundButton : nativeint * Android.Runtime.JniHandleOwnership -> Android.Widget.CompoundButton

Параметры

javaReference
IntPtr

nativeint

Ссылка IntPtrна объект Java Native Interface (JNI).

transfer
JniHandleOwnership

Значение, JniHandleOwnershipуказывающее, как обрабатывать javaReference

Комментарии

Части этой страницы — это изменения на основе работы, созданной и общей Project и используемых в соответствии с условиями, описанными в разделе "".

Применяется к

CompoundButton(Context, IAttributeSet, Int32)

Инициализирует новый экземпляр.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;I)V", "")]
public CompoundButton(Android.Content.Context? context, Android.Util.IAttributeSet? attrs, int defStyleAttr);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;I)V", "")>]
new Android.Widget.CompoundButton : Android.Content.Context * Android.Util.IAttributeSet * int -> Android.Widget.CompoundButton

Параметры

context
Context

Контекст, используемый для доступа к ресурсам и службам приложений.

attrs
IAttributeSet

Атрибуты, предоставленные из XML.

defStyleAttr
Int32

Атрибут в текущей теме, предоставляющий значения стиля по умолчанию.

Атрибуты

Комментарии

Части этой страницы — это изменения на основе работы, созданной и общей Project и используемых в соответствии с условиями, описанными в разделе "".

Применяется к

CompoundButton(Context, IAttributeSet, Int32, Int32)

Инициализирует новый экземпляр.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;II)V", "")]
public CompoundButton(Android.Content.Context? context, Android.Util.IAttributeSet? attrs, int defStyleAttr, int defStyleRes);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;II)V", "")>]
new Android.Widget.CompoundButton : Android.Content.Context * Android.Util.IAttributeSet * int * int -> Android.Widget.CompoundButton

Параметры

context
Context

Контекст, используемый для доступа к ресурсам и службам приложений.

attrs
IAttributeSet

Атрибуты, предоставленные из XML.

defStyleAttr
Int32

Атрибут в текущей теме, предоставляющий значения стиля по умолчанию.

defStyleRes
Int32

Ресурс, предоставляющий значения стиля по умолчанию.

Атрибуты

Комментарии

Части этой страницы — это изменения на основе работы, созданной и общей Project и используемых в соответствии с условиями, описанными в разделе "".

Применяется к