The Autodesk.Revit.DB.ScheduleHorizontalAlignment
class represents the horizontal alignment options available for a schedule in Revit.
The Autodesk.Revit.DB.ScheduleHorizontalAlignment
class has the following properties:
Center
: The schedule will be centered horizontally.Left
: The schedule will be aligned to the left of the page.Right
: The schedule will be aligned to the right of the page.The Autodesk.Revit.DB.ScheduleHorizontalAlignment
class does not have any methods.
The following example shows how to set the horizontal alignment of a schedule in Revit:
Autodesk.Revit.DB.ViewSchedule schedule = // get the schedule
schedule.HorizontalAlignment = Autodesk.Revit.DB.ScheduleHorizontalAlignment.Center;
This code will center the schedule horizontally on the page. Other alignment options can also be used as needed.
Autodesk.Revit.DB.ScheduleHorizontalAlignment
class is part of the Revit API and can only be used within a Revit project or plugin.