Share via


LineDisplayWindow.TryDisplayTextAsync Method

Definition

Overloads

TryDisplayTextAsync(String)

Try to display the specified text in the line display window.

TryDisplayTextAsync(String, LineDisplayTextAttribute)

Try to display the specified text in the line display window, using the specified display attribute.

TryDisplayTextAsync(String, LineDisplayTextAttribute, Point)

Try to display the specified text at a specified position in the line display window, using the specified display attribute.

TryDisplayTextAsync(String)

Try to display the specified text in the line display window.

public:
 virtual IAsyncOperation<bool> ^ TryDisplayTextAsync(Platform::String ^ text) = TryDisplayTextAsync;
/// [Windows.Foundation.Metadata.Overload("TryDisplayTextNormalAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> TryDisplayTextAsync(winrt::hstring const& text);
[Windows.Foundation.Metadata.Overload("TryDisplayTextNormalAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> TryDisplayTextAsync(string text);
function tryDisplayTextAsync(text)
Public Function TryDisplayTextAsync (text As String) As IAsyncOperation(Of Boolean)

Parameters

text
String

Platform::String

winrt::hstring

The text to be displayed.

Returns

True if the text was displayed successfully; otherwise, false.

Attributes

Applies to

TryDisplayTextAsync(String, LineDisplayTextAttribute)

Try to display the specified text in the line display window, using the specified display attribute.

public:
 virtual IAsyncOperation<bool> ^ TryDisplayTextAsync(Platform::String ^ text, LineDisplayTextAttribute displayAttribute) = TryDisplayTextAsync;
/// [Windows.Foundation.Metadata.Overload("TryDisplayTextAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> TryDisplayTextAsync(winrt::hstring const& text, LineDisplayTextAttribute const& displayAttribute);
[Windows.Foundation.Metadata.Overload("TryDisplayTextAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> TryDisplayTextAsync(string text, LineDisplayTextAttribute displayAttribute);
function tryDisplayTextAsync(text, displayAttribute)
Public Function TryDisplayTextAsync (text As String, displayAttribute As LineDisplayTextAttribute) As IAsyncOperation(Of Boolean)

Parameters

text
String

Platform::String

winrt::hstring

The text to be displayed.

displayAttribute
LineDisplayTextAttribute

The display attribute to be applied to the window.

Returns

True if the text was displayed successfully; otherwise, false.

Attributes

Applies to

TryDisplayTextAsync(String, LineDisplayTextAttribute, Point)

Try to display the specified text at a specified position in the line display window, using the specified display attribute.

public:
 virtual IAsyncOperation<bool> ^ TryDisplayTextAsync(Platform::String ^ text, LineDisplayTextAttribute displayAttribute, Point startPosition) = TryDisplayTextAsync;
/// [Windows.Foundation.Metadata.Overload("TryDisplayTextAtPositionAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> TryDisplayTextAsync(winrt::hstring const& text, LineDisplayTextAttribute const& displayAttribute, Point const& startPosition);
[Windows.Foundation.Metadata.Overload("TryDisplayTextAtPositionAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> TryDisplayTextAsync(string text, LineDisplayTextAttribute displayAttribute, Point startPosition);
function tryDisplayTextAsync(text, displayAttribute, startPosition)
Public Function TryDisplayTextAsync (text As String, displayAttribute As LineDisplayTextAttribute, startPosition As Point) As IAsyncOperation(Of Boolean)

Parameters

text
String

Platform::String

winrt::hstring

The text to be displayed.

displayAttribute
LineDisplayTextAttribute

The display attribute to be applied to the window.

startPosition
Point

The row and column at which to start displaying the text.

Returns

True if the text was displayed successfully; otherwise, false.

Attributes

Applies to