다음을 통해 공유


Printer.FontTransparent 속성

결정 하는 값을 가져오거나 설정 합니다. 여부의배경그래픽을는 Printer개체뒤의 텍스트 문자가 인쇄 되어 있습니다.

네임스페이스:  Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6
어셈블리:  Microsoft.VisualBasic.PowerPacks.Vs(Microsoft.VisualBasic.PowerPacks.Vs.dll)

구문

‘선언
Public Property FontTransparent As Boolean
public bool FontTransparent { get; set; }
public:
property bool FontTransparent {
    bool get ();
    void set (bool value);
}
member FontTransparent : bool with get, set
function get FontTransparent () : boolean
function set FontTransparent (value : boolean)

속성 값

형식: System.Boolean
Boolean 을 반환합니다.

설명

때의 FontTransparent속성을 설정 true, 현재 인쇄 위치 그래픽의 맨 위에 텍스트를 인쇄 합니다 (CurrentX, CurrentY). 텍스트 뒤에 그래픽이 표시 되지 및배경그래픽 색이 있는 텍스트를 읽을 수 없습니다.

경우는 FontTransparent속성을 설정 false, 그래픽 텍스트 뒤의 영역을 가리지는 흰색배경으로 텍스트를 인쇄 합니다.

[!참고]

기능을 수행 하 고 개체의 Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6네임스페이스제공 됩니다 사용에 대 한Visual Basic6.0 업그레이드 도구 사용 하 여 Visual Basic. 이러한 함수와 개체에서 제공하는 대부분의 기능은 .NET Framework의 다른 네임스페이스에서 얻을 수 있는 기능과 동일하므로이러한 함수와 개체는 Visual Basic 6.0 코드 모델이 .NET Framework 구현과 크게 다른 경우에만 사용해야 합니다.

예제

다음 예제에서는 페이지의이미지위에 텍스트를 인쇄 하는 방법을 보여 줍니다.이 가정 이라는이미지리소스를 추가 하는 Image1프로젝트를 합니다.

Dim Printer As New Printer
Printer.PaintPicture(My.Resources.Image1, 0, 0)
' Set the print position to location of the image.
Printer.CurrentX = 0
Printer.CurrentY = 0
Printer.FontTransparent = True
Printer.Print("FontTransparent is True " & vbCrLf)
Printer.FontTransparent = False
Printer.Print("FontTransparent is False")
Printer.EndDoc()

.NET Framework 보안

  • 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.

참고 항목

참조

Printer 클래스

Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6 네임스페이스

기타 리소스

프린터 호환성 라이브러리

방법: 프린터 호환성 라이브러리를 사용하여 업그레이드 오류 수정(Visual Basic)

프린터 호환성 라이브러리를 참조하는 응용 프로그램 배포