TextClock コンストラクター
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| 名前 | 説明 |
|---|---|
| TextClock(Context) |
現在のロケールの既定のパターンを使用して新しいクロックを作成します。 |
| TextClock(Context, IAttributeSet) |
XML から増やされた新しいクロックを作成します。 |
| TextClock(IntPtr, JniHandleOwnership) |
JNI オブジェクトのマネージド表現を作成するときに使用されるコンストラクター。ランタイムによって呼び出されます。 |
| TextClock(Context, IAttributeSet, Int32) |
XML から増やされた新しいクロックを作成します。 |
| TextClock(Context, IAttributeSet, Int32, Int32) |
現在のロケールの既定のパターンを使用して新しいクロックを作成します。 |
TextClock(Context)
現在のロケールの既定のパターンを使用して新しいクロックを作成します。
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")]
public TextClock(Android.Content.Context? context);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")>]
new Android.Widget.TextClock : Android.Content.Context -> Android.Widget.TextClock
パラメーター
- context
- Context
ビューが実行されているコンテキスト。現在のテーマやリソースなどにアクセスできます。
- 属性
注釈
現在のロケールの既定のパターンを使用して新しいクロックを作成します。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。
適用対象
TextClock(Context, IAttributeSet)
XML から増やされた新しいクロックを作成します。
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;)V", "")]
public TextClock(Android.Content.Context? context, Android.Util.IAttributeSet? attrs);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;)V", "")>]
new Android.Widget.TextClock : Android.Content.Context * Android.Util.IAttributeSet -> Android.Widget.TextClock
パラメーター
- context
- Context
ビューが実行されているコンテキスト。現在のテーマやリソースなどにアクセスできます。
- attrs
- IAttributeSet
ビューを拡張している XML タグの属性
- 属性
注釈
XML から増やされた新しいクロックを作成します。 このオブジェクトのプロパティは、XML で指定された属性から初期化されます。
このコンストラクターは既定のスタイル 0 を使用するため、適用される属性値はコンテキストのテーマと指定された AttributeSet 内の属性値のみです。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。
適用対象
TextClock(IntPtr, JniHandleOwnership)
JNI オブジェクトのマネージド表現を作成するときに使用されるコンストラクター。ランタイムによって呼び出されます。
protected TextClock(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Widget.TextClock : nativeint * Android.Runtime.JniHandleOwnership -> Android.Widget.TextClock
パラメーター
- transfer
- JniHandleOwnership
JniHandleOwnership処理方法を示すjavaReference
注釈
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。
適用対象
TextClock(Context, IAttributeSet, Int32)
XML から増やされた新しいクロックを作成します。
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;I)V", "")]
public TextClock(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.TextClock : Android.Content.Context * Android.Util.IAttributeSet * int -> Android.Widget.TextClock
パラメーター
- context
- Context
ビューが実行されているコンテキスト。現在のテーマやリソースなどにアクセスできます。
- attrs
- IAttributeSet
ビューを拡張している XML タグの属性
- defStyleAttr
- Int32
ビューの既定値を提供するスタイル リソースへの参照を含む現在のテーマの属性。 既定値を探さない場合は 0 にすることができます。
- 属性
注釈
XML から増やされた新しいクロックを作成します。 このオブジェクトのプロパティは、XML で指定された属性から初期化されます。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。
適用対象
TextClock(Context, IAttributeSet, Int32, Int32)
現在のロケールの既定のパターンを使用して新しいクロックを作成します。
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;II)V", "")]
public TextClock(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.TextClock : Android.Content.Context * Android.Util.IAttributeSet * int * int -> Android.Widget.TextClock
パラメーター
- context
- Context
ビューが実行されているコンテキスト。現在のテーマやリソースなどにアクセスできます。
- attrs
- IAttributeSet
XML から提供される属性。
- defStyleAttr
- Int32
既定のスタイル値を提供する現在のテーマの属性。
- defStyleRes
- Int32
既定のスタイル値を提供するリソース。
- 属性
注釈
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。