LineDisplayWindow.TryDisplayStorageFileBitmapAtCursorAsync 方法

定義

多載

TryDisplayStorageFileBitmapAtCursorAsync(StorageFile, LineDisplayHorizontalAlignment, LineDisplayVerticalAlignment, Int32)

嘗試以非同步方式在目前游標位置的儲存檔案中,以特定寬度顯示點陣圖。

TryDisplayStorageFileBitmapAtCursorAsync(StorageFile, LineDisplayHorizontalAlignment, LineDisplayVerticalAlignment)

嘗試以非同步方式顯示位於目前游標位置之儲存體檔案中的點陣圖。

TryDisplayStorageFileBitmapAtCursorAsync(StorageFile)

嘗試以非同步方式顯示位於目前游標位置之儲存體檔案中的點陣圖。

TryDisplayStorageFileBitmapAtCursorAsync(StorageFile, LineDisplayHorizontalAlignment, LineDisplayVerticalAlignment, Int32)

嘗試以非同步方式在目前游標位置的儲存檔案中,以特定寬度顯示點陣圖。

public:
 virtual IAsyncOperation<bool> ^ TryDisplayStorageFileBitmapAtCursorAsync(StorageFile ^ bitmap, LineDisplayHorizontalAlignment horizontalAlignment, LineDisplayVerticalAlignment verticalAlignment, int widthInPixels) = TryDisplayStorageFileBitmapAtCursorAsync;
/// [Windows.Foundation.Metadata.Overload("TryDisplayStorageFileBitmapAtCursorWithAlignmentAndWidthAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> TryDisplayStorageFileBitmapAtCursorAsync(StorageFile const& bitmap, LineDisplayHorizontalAlignment const& horizontalAlignment, LineDisplayVerticalAlignment const& verticalAlignment, int const& widthInPixels);
[Windows.Foundation.Metadata.Overload("TryDisplayStorageFileBitmapAtCursorWithAlignmentAndWidthAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> TryDisplayStorageFileBitmapAtCursorAsync(StorageFile bitmap, LineDisplayHorizontalAlignment horizontalAlignment, LineDisplayVerticalAlignment verticalAlignment, int widthInPixels);
function tryDisplayStorageFileBitmapAtCursorAsync(bitmap, horizontalAlignment, verticalAlignment, widthInPixels)
Public Function TryDisplayStorageFileBitmapAtCursorAsync (bitmap As StorageFile, horizontalAlignment As LineDisplayHorizontalAlignment, verticalAlignment As LineDisplayVerticalAlignment, widthInPixels As Integer) As IAsyncOperation(Of Boolean)

參數

bitmap
StorageFile

要顯示的點陣圖。

horizontalAlignment
LineDisplayHorizontalAlignment

相對於目前文字字元位置之點陣圖的水準對齊方式。

verticalAlignment
LineDisplayVerticalAlignment

點陣圖相對於目前文字字元位置的垂直對齊方式。

widthInPixels
Int32

int

所需的點陣圖寬度。 值為 0 圖元的每個螢幕點會顯示點陣圖, (未調整) 。

傳回

如果成功顯示點陣圖,則傳回 True;否則為 False。

屬性

Windows 需求

裝置系列
Windows 10 Fall Creators Update (已於 10.0.16299.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v5.0 引進)

備註

如果 LineDisplayCapabilities.CanDisplayBitmaps 值為 False,這個方法將會失敗。

如果提供的 widthInPixels 值大於 ClaimedLineDisplay.MaxBitmapSizeInPixels,這個方法將會失敗。

適用於

TryDisplayStorageFileBitmapAtCursorAsync(StorageFile, LineDisplayHorizontalAlignment, LineDisplayVerticalAlignment)

嘗試以非同步方式顯示位於目前游標位置之儲存體檔案中的點陣圖。

public:
 virtual IAsyncOperation<bool> ^ TryDisplayStorageFileBitmapAtCursorAsync(StorageFile ^ bitmap, LineDisplayHorizontalAlignment horizontalAlignment, LineDisplayVerticalAlignment verticalAlignment) = TryDisplayStorageFileBitmapAtCursorAsync;
/// [Windows.Foundation.Metadata.Overload("TryDisplayStorageFileBitmapAtCursorWithAlignmentAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> TryDisplayStorageFileBitmapAtCursorAsync(StorageFile const& bitmap, LineDisplayHorizontalAlignment const& horizontalAlignment, LineDisplayVerticalAlignment const& verticalAlignment);
[Windows.Foundation.Metadata.Overload("TryDisplayStorageFileBitmapAtCursorWithAlignmentAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> TryDisplayStorageFileBitmapAtCursorAsync(StorageFile bitmap, LineDisplayHorizontalAlignment horizontalAlignment, LineDisplayVerticalAlignment verticalAlignment);
function tryDisplayStorageFileBitmapAtCursorAsync(bitmap, horizontalAlignment, verticalAlignment)
Public Function TryDisplayStorageFileBitmapAtCursorAsync (bitmap As StorageFile, horizontalAlignment As LineDisplayHorizontalAlignment, verticalAlignment As LineDisplayVerticalAlignment) As IAsyncOperation(Of Boolean)

參數

bitmap
StorageFile

要顯示的點陣圖。

horizontalAlignment
LineDisplayHorizontalAlignment

相對於目前文字字元位置之點陣圖的水準對齊方式。

verticalAlignment
LineDisplayVerticalAlignment

點陣圖相對於目前文字字元位置的垂直對齊方式。

傳回

如果成功顯示點陣圖,則傳回 True;否則為 False。

屬性

Windows 需求

裝置系列
Windows 10 Fall Creators Update (已於 10.0.16299.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v5.0 引進)

備註

如果 LineDisplayCapabilities.CanDisplayBitmaps 值為 False,這個方法將會失敗。

適用於

TryDisplayStorageFileBitmapAtCursorAsync(StorageFile)

嘗試以非同步方式顯示位於目前游標位置之儲存體檔案中的點陣圖。

public:
 virtual IAsyncOperation<bool> ^ TryDisplayStorageFileBitmapAtCursorAsync(StorageFile ^ bitmap) = TryDisplayStorageFileBitmapAtCursorAsync;
/// [Windows.Foundation.Metadata.Overload("TryDisplayStorageFileBitmapAtCursorAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> TryDisplayStorageFileBitmapAtCursorAsync(StorageFile const& bitmap);
[Windows.Foundation.Metadata.Overload("TryDisplayStorageFileBitmapAtCursorAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> TryDisplayStorageFileBitmapAtCursorAsync(StorageFile bitmap);
function tryDisplayStorageFileBitmapAtCursorAsync(bitmap)
Public Function TryDisplayStorageFileBitmapAtCursorAsync (bitmap As StorageFile) As IAsyncOperation(Of Boolean)

參數

bitmap
StorageFile

要顯示的點陣圖。

傳回

如果成功顯示點陣圖,則傳回 True;否則為 False。

屬性

Windows 需求

裝置系列
Windows 10 Fall Creators Update (已於 10.0.16299.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v5.0 引進)

備註

如果 LineDisplayCapabilities.CanDisplayBitmaps 值為 False,這個方法將會失敗。

適用於