PrintDocument.OriginAtMargins Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a value indicating whether the position of a graphics object associated with a page is located just inside the user-specified margins or at the top-left corner of the printable area of the page.
public:
property bool OriginAtMargins { bool get(); void set(bool value); };
public bool OriginAtMargins { get; set; }
member this.OriginAtMargins : bool with get, set
Public Property OriginAtMargins As Boolean
Property Value
true
if the graphics origin starts at the page margins; false
if the graphics origin is at the top-left corner of the printable page. The default is false
.
Remarks
Calculating the area available to print requires knowing the physical size of the paper, the margins for the page, and the location of the Graphics object origin. When OriginAtMargins is true
, the Graphics object location takes into account the PageSettings.Margins property value and the printable area of the page. When OriginAtMargins is false
, only the printable area of the page is used to determine the location of the Graphics object origin, the PageSettings.Margins value is ignored.
For example, if OriginAtMargins is true
, and PageSettings.Margins is set for 1 inch on each side, the Graphics object included in the PrintPageEventArgs is located 1 inch from the left and top of the page. If the printable area of the page is .25 of an inch on each side and OriginAtMargins is false
, the Graphics object is located .25 of an inch from the left and top of the page.
Note
The printable area of a page varies from printer to printer and is not guaranteed to be symmetrical.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기