ONLINE HELP WINDEV, WEBDEV AND WINDEV MOBILEVersion: 2425262728
 Font variableLimitations WINDEV WEBDEV WINDEV Mobile Others Orientation (Property) In french: Angle The Orientation property is used to:Get the angle (in degrees) of a Font variable.Modify the angle (in degrees) of a Font variable.Remark: The angle is calculated counterclockwise from an horizontal line (trigonometric direction).Example // Define the characteristics of a Font variableFont1 is FontFont1.Name = "Arial"Font1.Color = LightYellowFont1.Size = 14Font1.SizeUnit = unitPointFont1.Orientation = 45// Apply the font to "MyControl"MyControl.Font = Font1 Syntax Getting the angle of a Font variable = .Orientation : IntegerAngle (in degrees) of the specified Font variable. : FontName of the Font variable to be used. Modifying the angle of a Font variable .Orientation = : FontName of the Font variable to be used. : IntegerNew angle (in degrees) for the specified Font variable. Remarks Font variableA font can be created from a Font variable.To define the font characteristics, use:the FontCreate function.the Charset, Orientation, StrikeOut, Color, Bold, Italic, CharacterSpacing, LineSpacing, Name, Underline, Size and SizeUnit properties. Only the following properties can be used with the Font type: Orientation, StrikeOut, Color, Bold, Italic, Name, Underline, Size. This font can be used:To write text in drawings (dFont).To write in charts (grLabelFont, grLegendFont, grTitleFont and grAxisTitleFont).To print (iFont).In the controls of a window (Font property).In the controls of a report (Font property).LimitationsOrientation is ignored when a font is assigned to a window control. For example, if the MyFont Font variable has the following characteristics: Size 12, Arial, 45º angle, only the first two characteristics will be taken into account when the values are assigned as follows: MyControl.Font = MyFont Minimum version required Version 9 This page is also available for…