SecondaryTile.ForegroundText プロパティ

定義

Note

foregroundText は、Windows 8.1後にリリースで変更または使用できない場合があります。 代わりに、 SecondaryTileVisualElements.ForegroundText を使用します

タイルで暗いテキストと淡色のテキストのどちらを使用するかを取得または設定します。

public:
 property ForegroundText ForegroundText { ForegroundText get(); void set(ForegroundText value); };
/// [get: Windows.Foundation.Metadata.Deprecated("ForegroundText may be altered or unavailable for releases after Windows 8.1. Instead, use VisualElements.ForegroundText.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
/// [set: Windows.Foundation.Metadata.Deprecated("TileOptions may be altered or unavailable for releases after Windows 8.1. Instead, use VisualElements.ShowNameOnSquare150x150Logo, VisualElements.ShowNameOnWide310x150Logo, and RoamingEnabled.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
ForegroundText ForegroundText();

void ForegroundText(ForegroundText value);
/// [get: Windows.Foundation.Metadata.Deprecated("ForegroundText may be altered or unavailable for releases after Windows 8.1. Instead, use VisualElements.ForegroundText.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
/// [set: Windows.Foundation.Metadata.Deprecated("TileOptions may be altered or unavailable for releases after Windows 8.1. Instead, use VisualElements.ShowNameOnSquare150x150Logo, VisualElements.ShowNameOnWide310x150Logo, and RoamingEnabled.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
ForegroundText ForegroundText();

void ForegroundText(ForegroundText value);
public ForegroundText ForegroundText { [Windows.Foundation.Metadata.Deprecated("ForegroundText may be altered or unavailable for releases after Windows 8.1. Instead, use VisualElements.ForegroundText.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))] get; [Windows.Foundation.Metadata.Deprecated("TileOptions may be altered or unavailable for releases after Windows 8.1. Instead, use VisualElements.ShowNameOnSquare150x150Logo, VisualElements.ShowNameOnWide310x150Logo, and RoamingEnabled.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))] set; }
public ForegroundText ForegroundText { [Windows.Foundation.Metadata.Deprecated("ForegroundText may be altered or unavailable for releases after Windows 8.1. Instead, use VisualElements.ForegroundText.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")] get; [Windows.Foundation.Metadata.Deprecated("TileOptions may be altered or unavailable for releases after Windows 8.1. Instead, use VisualElements.ShowNameOnSquare150x150Logo, VisualElements.ShowNameOnWide310x150Logo, and RoamingEnabled.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")] set; }
var foregroundText = secondaryTile.foregroundText;
secondaryTile.foregroundText = foregroundText;
Public Property ForegroundText As ForegroundText

プロパティ値

既定の濃色テキストまたは既定のライト テキストを指定する 2 つの値のいずれか。

属性

注釈

このプロパティは、Windows Phone 8.1 では無視されます。

このプロパティが指定されていない場合、親アプリのタイルの前景テキスト プロパティから継承されます。

使用できるテキストの色は、既定の濃色と既定の明るさの 2 つだけで、Windows によって設定されます。 選択した背景色とロゴイメージの不透明度に最も適したテキスト の色 を選択します。

適用対象