共用方式為


Printer.FontStrikethru 屬性

取得或設定刪除線字型樣式。

命名空間:  Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6
組件:  Microsoft.VisualBasic.PowerPacks.Vs (在 Microsoft.VisualBasic.PowerPacks.Vs.dll 中)

語法

'宣告
Public Property FontStrikethru As Boolean
public bool FontStrikethru { get; set; }
public:
property bool FontStrikethru {
    bool get ();
    void set (bool value);
}
member FontStrikethru : bool with get, set
function get FontStrikethru () : boolean 
function set FontStrikethru (value : boolean)

屬性值

類型:Boolean
傳回 Boolean。

備註

對於 Printer 物件,將 FontStrikeThru 屬性不會影響物件上已經繪製的文字。

注意事項注意事項

Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6 命名空間中的函式和物件都是供這些工具使用,以便從 Visual Basic 6.0 升級至 Visual Basic。在大多數情況下,這些函式和物件會複製在 .NET Framework 的其他命名空間中可以找到的功能。只有當 Visual Basic 6.0 程式碼模型與 .NET Framework 實作有顯著差異時,才需要這些項目。

範例

下列範例示範如何設定 FontStrikeThru 屬性。

Dim pr As New Printer
pr.Print("This is a regular font")
pr.FontStrikeThru = True
pr.Print("This is a strikethrough font")
pr.EndDoc()

.NET Framework 安全性

請參閱

參考

Printer 類別

Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6 命名空間

其他資源

Printer Compatibility Library

How to: Fix Upgrade Errors by Using the Printer Compatibility Library (Visual Basic)

Deploying Applications That Reference the Printer Compatibility Library