Kadmos.com


?>

  Home | Products | Download | Purchase | Support | Language

Products
DXFReader ActiveX Control
 • DXF Files Overview
 • Distribution
 • Installation
 • Quick Start
 • Control Summary
 • Download
 • Buy now!
 • DXFReader Reference
  • Properties
   • ACADVersion
   • AppID
   • AppIDs
   • AutoRedraw
   • AxesColor
   • BackColor
   • BaseX
   • BaseY
   • Block
   • BlockRecord
   • BlockRecords
   • Blocks
   • BorderStyle
   • Class
   • Classes
   • CurrentColor
   • CurrentEleva...
   • CurrentLayer
   • CurrentLineType
   • CurrentTextS...
   • CurrentThick...
   • DateCreated
   • DateLastEdited
   • DIMSTYLEc
   • DimStyles
   • DisplayAspec...
   • DrawingComment
   • DrawMode
   • Enabled
   • Entities
   • Entity
   • FileName
   • FileStatus
   • Font
   • ForeColor
   • GridColor
   • hDC
   • Layer
   • Layers
   • LineType
   • LineTypes
   • MaxX
   • MaxY
   • MinX
   • MinY
   • MouseIcon
   • MousePointer
   • Obj
   • Objects
   • PaletteButto...
   • PaletteCance...
   • PaletteCaption
   • PaletteOkBut...
   • PaletteWindo...
   • PaletteWindo...
   • PaletteWindo...
   • Picture
   • PictureBaseX
   • PictureBaseY
   • PictureHeight
   • PictureScale...
   • PictureScaleX
   • PictureScaleY
   • PictureWidth
   • PlotAspectRatio
   • PlotDocument...
   • PlotMarginBo...
   • PlotMarginLeft
   • PlotMarginRight
   • PlotMarginTop
   • PlotMode
   • PlotOriginX
   • PlotOriginY
   • PlotPenWidth
   • PlotRendering
   • PlotRotation
   • PlotScale
   • RotationAngle
   • ScaleX
   • ScaleY
   • ScrollBars
   • ShowAxes
   • ShowBasePoint
   • ShowGrid
   • ShowLimits
   • ShowPlotMargins
   • Style
   • Styles
   • ToolTipText
   • TotalEditTime
   • TotalEditTim...
   • TranslationX
   • TranslationY
   • UCS
   • UCSs
   • UserTimer
   • UserTimerDays
   • Version
   • View
   • ViewPort
   • ViewPortMaxX
   • ViewPortMaxY
   • ViewPortMinX
   • ViewPortMinY
   • ViewPorts
   • Views
   • ZoomInOutPer...
Hidden Properties
  • Methods
  • Events

 • DXFPlot Reference

IXF ActiveX Control

Postel ActiveX Control

Tech Support
OnLine Support
Phone Support
Sample Code
Registered Users
FAQ
References
Kadmos
Contact Kadmos
Environment
Customer List
Newsletter
Download
ActiveX Controls
Updates
Purchase
Price List
International Resellers
Our Guarantee
Shipment Options
Payment Options
Shopping Cart
    DXFReader Control - Styles Property

Kadmos DXFReader ActiveX Control      Previous Next
DXFReader Control
Styles Property

Description Returns a reference to a collection of "Style" objects. Each object corresponds to an entry of the Text style table (STYLE) of the DXF file.
Syntax
Visual Basic
[form.]DXFReader.Styles
Visual C++ C_Collection DXFReader.GetStyles();
Delphi property Styles: _Collection;
C# VBA.Collection DXFReader.Styles;
Remarks Use the Styles collection to retrieve or remove an individual Style object.

The methods of the Styles collection are:
CountCounts the defined Styles
RemoveRemoves a Style object from the Styles collection

To count all the objects of the Styles collection use the following code:

Dim NStyles As Long

NStyles = DXFReader1.Styles.Count

To remove a Style object, for example the first, from the Styles collection use the following code:

DXFReader1.Styles.Remove (1)

All of the properties for the Style object are listed in the following table:

PropertyData TypeDescription

StyleName String The name of the text style
FontFileName String Primary font file name
BigFontName String Bigfont file name; blank if none
Flag Integer Standard flag values
TextGenerationFlags Integer Text generation flags: 2=Text is backward (mirrored in X), 4=Text is upside down (mirrored in Y)
Handle String Handle
FixedTextHeight Single Fixed text height; 0 if not fixed
WidthFactor Single Width factor
LastHeightUsed Single Last height used
Angle Single Oblique angle


DXFReader displays all text entites using fonts installed on the target machine. When it processes a text entity, first it looks at its StyleName property. If found the control uses the font specified in the FontFileName property else it uses the style of the CurrentTextStyle property. If the font is not present then the default Font property is used.

DXFReader does not display .SHX fonts using instead the corresponding true type fonts. For example, if the FileFontName property is set to 'txt', DXFReader uses the true font file 'txt.ttf' if present in the system.

The code below lists the contents of the STYLE table of e DXF file:

Dim Style as Object

With DXFReader1

 For Each Style In .Styles

  Printer.Print Style.StyleName

 Next Style

End With


See the Autodesk DXF Reference for more information.
Data Type Collection

Copyright © 2008/2011 Kadmos.com - All rights reserved. Privacy Policy