Visual Basic (Declaration) | |
---|---|
Public Property FitToPagesTall As System.Short |
C# | |
---|---|
public System.short FitToPagesTall {get; set;} |
Property Value
Short.If the Zoom property is set to True, this property is ignored.
C# | Copy Code |
---|---|
sb.Sheets[0].PageSetup.FitToPagesTall = 2; sb.Sheets[0].PageSetup.FitToPagesWide = 2; if (sb.Sheets[0].PageSetup.FitToPage == true) { MessageBox.Show("FitToPage"); } |
Visual Basic | Copy Code |
---|---|
sb.Sheets(0).PageSetup.FitToPagesTall = 2 sb.Sheets(0).PageSetup.FitToPagesWide = 2 If sb.Sheets(0).PageSetup.FitToPage = True Then MsgBox("FitToPage") End If |