www.gnostice.com 

PenWidth

Top  Previous  Next

The PenWidth property specifies the width of the pen in pixels.

 

 

 

 

Syntax

 

 

[VC++]

long GetPenWidth();

void SetPenWidth(long nNewValue);

 

[C#]

public abstract new int PenWidth [  get,  set ]

 

[VB]

Property PenWidth As Long

 

Remarks

 

 

If you attempt to set Width to a value less than 0, the new value is ignored.

 

 

 

 

Note

 

 

The value of PenWidth influences the values of PenStyle that are valid.

 

 

 

 

Example Code

 

 

[VC++]

m_Engine.SetFileName("Sample");

m_Engine.SetMeasurementUnit(muPixels);

 

// Set the paper size.

m_Engine.SetPagePaperSize(Custom);

m_Engine.SetPageHeight(500);

m_Engine.SetPageWidth(400);

 

m_Engine.BeginDoc();

m_Engine.EndDoc();                        

 

 

 

[VB]

With gtEngineX1

       .FileName = "Sample"

       .MeasurementUnit = muPixels

 

       ' Set the paper size.

       .PagePaperSize = Custom

       .PageHeight = 500

       .PageWidth = 400

 

       .BeginDoc

       .EndDoc

End With

 

 

[C#]

 

       axgtEngineX1.FileName = Sample";

  axgtEngineX1.BeginDoc();

  axgtEngineX1.MeasurementUnit = eDocEngineX.TxgtUnitType.muPixels ;

  // Set the paper size.

  axgtEngineX1.PagePaperSize = eDocEngineX.TxgtPaperSize.Custom ;

  axgtEngineX1.PageHeight = 500 ;

  axgtEngineX1.PageWidth = 400 ;

  axgtEngineX1.BeginDoc();

  axgtEngineX1.EndDoc();

 

 

 

 

See Also

 

 

PenColor, PenStyle