Document.RightMargin property (Visio)
Specifies the right margin, which is used when printing. Read/write.
Syntax
expression.RightMargin (UnitsNameOrCode)
expression A variable that represents a Document object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
UnitsNameOrCode | Optional | Variant | The units to use when retrieving or setting the margin value. |
Return value
Double
Remarks
If UnitsNameOrCode is not provided, the RightMargin property will default to internal drawing units (inches).
The RightMargin property corresponds to the Right setting in the Print Setup dialog box (on the Design tab, click the Page Setup arrow, and then, on the Print Setup tab, click Setup).
You can specify UnitsNameOrCode as an integer or a string value. If the string is invalid, an error is generated. For example, the following statements all set UnitsNameOrCode to inches.
Document.RightMargin (visInches) = newValue
Document.RightMargin (65) = newValue
Document.RightMargin ("in") = newValue , where "in" can also be any of the alternate strings representing inches, such as "inch", "in.", or "intCounter".
For a complete list of valid unit strings along with corresponding Automation constants (integer values), see About units of measure.
Automation constants for representing units are declared by the Visio type library in member VisUnitCodes.
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기