Figure 11-9. Viewing settings in the Text Style dialog box in Office Word

Printer QR-Code in Office Word Figure 11-9. Viewing settings in the Text Style dialog box

Figure 11-9. Viewing settings in the Text Style dialog box
Make Denso QR Bar Code In None
Using Barcode printer for Microsoft Word Control to generate, create QR Code image in Office Word applications.
www.OnBarcode.com
ANSI/AIM Code 39 Creator In None
Using Barcode printer for Microsoft Word Control to generate, create USS Code 39 image in Microsoft Word applications.
www.OnBarcode.com
Creating TextStyle Objects
Creating QR Code In None
Using Barcode drawer for Word Control to generate, create QR Code image in Office Word applications.
www.OnBarcode.com
Printing USS-128 In None
Using Barcode generation for Word Control to generate, create GTIN - 128 image in Word applications.
www.OnBarcode.com
By creating new TextStyle objects for different types of text or information, you can have at your fingertips all the text styles that you require for a drawing. To create a new TextStyle object, use the Add method as follows: Set TextStyleObject = TextStylesCollection.Add(TextStyleName) Table 11-14 shows the Add method s parameter.
Barcode Creation In None
Using Barcode creation for Office Word Control to generate, create Barcode image in Microsoft Word applications.
www.OnBarcode.com
Code 128 Code Set A Creator In None
Using Barcode creator for Word Control to generate, create ANSI/AIM Code 128 image in Word applications.
www.OnBarcode.com
CHAPTER 11 DIMENSIONS AND ANNOTATIONS
Creating Barcode In None
Using Barcode encoder for Office Word Control to generate, create Barcode image in Microsoft Word applications.
www.OnBarcode.com
Making RoyalMail4SCC In None
Using Barcode generation for Microsoft Word Control to generate, create Royal Mail Barcode image in Office Word applications.
www.OnBarcode.com
Table 11-14. The Add Method s Parameter
QR Code 2d Barcode Reader In Visual C#
Using Barcode decoder for .NET Control to read, scan read, scan image in VS .NET applications.
www.OnBarcode.com
Making QR-Code In None
Using Barcode drawer for Microsoft Word Control to generate, create QR Code image in Office Word applications.
www.OnBarcode.com
Name
GTIN - 128 Encoder In C#.NET
Using Barcode generator for Visual Studio .NET Control to generate, create GTIN - 128 image in .NET applications.
www.OnBarcode.com
UPC-A Supplement 2 Printer In .NET
Using Barcode creator for VS .NET Control to generate, create UPC-A Supplement 2 image in Visual Studio .NET applications.
www.OnBarcode.com
TextStyleName
GS1 128 Printer In Objective-C
Using Barcode creation for iPad Control to generate, create UCC-128 image in iPad applications.
www.OnBarcode.com
Make 1D In VS .NET
Using Barcode creator for ASP.NET Control to generate, create 1D Barcode image in ASP.NET applications.
www.OnBarcode.com
Data Type
Painting QR Code 2d Barcode In VB.NET
Using Barcode creation for .NET Control to generate, create QR image in Visual Studio .NET applications.
www.OnBarcode.com
PDF417 Generation In .NET Framework
Using Barcode generation for VS .NET Control to generate, create PDF417 image in .NET framework applications.
www.OnBarcode.com
String
Barcode Reader In None
Using Barcode recognizer for Software Control to read, scan read, scan image in Software applications.
www.OnBarcode.com
Encode ANSI/AIM Code 128 In Java
Using Barcode creation for Eclipse BIRT Control to generate, create Code 128B image in BIRT applications.
www.OnBarcode.com
Description
Barcode Creation In None
Using Barcode printer for Software Control to generate, create Barcode image in Software applications.
www.OnBarcode.com
PDF-417 2d Barcode Scanner In VB.NET
Using Barcode recognizer for .NET framework Control to read, scan read, scan image in .NET framework applications.
www.OnBarcode.com
An identifying name for the new TextStyle object
If you try to add a TextStyle with the name of an existing TextStyle object, this method will return a reference to the existing object. The newly created object will have the same settings as the active TextStyle object.
Retrieving and Setting Text Styles
Once you ve created a new TextStyle object, you ll need to set its font settings. You may also want to modify or check the settings of an existing TextStyle object. You can do this through the SetFont and GetFont methods. In addition, you can use the font settings held within an .shx file through the FontFile and BigFontFile properties. The SetFont Method You use the SetFont method to define the font for a TextStyle object. It sets the typeface, sets whether text will be bold and/or italicized, and sets the character set and pitch and family definitions. TextStyleObject.SetFont TypeFace, Bold, Italic, CharacterSet, PitchAndFamily
Note Many TrueType fonts are licensed and aren t provided for public use without explicit permission.
Be sure to comply with any licensing terms if you set a custom font and package the font with your drawing files to send to customers.
Table 11-15 shows the SetFont method s parameters. Table 11-15. The SetFont Method s Parameters
Name
TypeFace
Data Type
String
Description
The name of a font, for example, Times New Roman. If the TextStyle is determined by an .shx file, this parameter holds an empty string. Determines if the text will be bold. If this value is set to True, the text will be bold. Otherwise, the text style isn t bold. Determines if the text will be italicized. If this value is set to True, the text will be italic. Otherwise, the text style isn t italic.
Continued
Bold Italic
Boolean Boolean
CHAPTER 11 DIMENSIONS AND ANNOTATIONS
Table 11-15. (Continued)
Name
CharacterSet
Data Type
Long
Description
Specifies the character set for the font. Use the following constants in your application in the declaration section of your code: Public Const ANSI_CHARSET = 0 Public Const DEFAULT_CHARSET = 1 Public Const SYMBOL_CHARSET = 2 Public Const SHIFTJIS_CHARSET = 128 Public Const OEM_CHARSET = 255 Specifies the pitch and family values for the font. The value is a combination of three different settings for pitch, family, and optionally the TrueType flag (required only when you re specifying a TrueType font). Use the following constants in your application in the declaration section of your code: ' Pitch Values Public Const DEFAULT_PITCH = 0 Public Const FIXED_PITCH = 1 Public Const VARIABLE_PITCH = 2 ' Family Values Public Const FF_DONTCARE = 0 Public Const FF_ROMAN = 16 Public Const FF_SWISS = 32 Public Const FF_MODERN = 48 Public Const FF_SCRIPT = 64 Public Const FF_DECORATIVE = 80 ' TrueType Flag Public Const TMPF_TRUETYPE = &H4
PitchAndFamily
Long
This example creates a new TextStyle object and sets its font style to bold Greek symbols: Public Sub AddTextStyle Dim objTextStyle As AcadTextStyle Set objTextStyle = ThisDrawing.TextStyles.Add("Bold Greek Symbols") objTextStyle.SetFont "Symbol", True, False, 0, 0 End Sub The GetFont Method The GetFont method works in much the same way as the SetFont method, except it retrieves the font settings. TextStyleObject.GetFont TypeFace, Bold, Italic, CharacterSet, PitchAndFamily Table 11-16 shows the GetFont method s parameters.
CHAPTER 11 DIMENSIONS AND ANNOTATIONS
Table 11-16. The GetFont Method s Parameters
Name
TypeFace
Data Type
String
Description
The name of a font, for example, Times New Roman. If the TextStyle is determined by a .shx file, this parameter holds an empty string. Determines if the text will be bold. If this value is set to True, the text will be bold. Otherwise, the text style isn t bold. Determines if the text will be italicized. If this value is set to True, the text will be italic. Otherwise the text style isn t italic. See Table 11-15 for a description of this parameter. See Table 11-15 for a description of this parameter.
Copyright © OnBarcode.com . All rights reserved.