Skip to content
This repository was archived by the owner on Oct 11, 2023. It is now read-only.

3342a86c 5f86 b24a 5d9e 6457f6f9563c

haplokuon edited this page May 6, 2023 · 1 revision

WriteFraction(String, String, FractionFormatType) Method

netDxf 3.0.0 Library

Formats a text string to represent a fraction.

Definition

Namespace: netDxf.Entities
Assembly: netDxf (in netDxf.dll) Version: 3.0.0

C#

public void WriteFraction(
	string numerator,
	string denominator,
	FractionFormatType fractionType
)

VB

Public Sub WriteFraction ( 
	numerator As String,
	denominator As String,
	fractionType As FractionFormatType
)

C++

public:
void WriteFraction(
	String^ numerator, 
	String^ denominator, 
	FractionFormatType fractionType
)

F#

member WriteFraction : 
        numerator : string * 
        denominator : string * 
        fractionType : FractionFormatType -> unit 

Parameters

  String
Fraction numerator.
  String
Fraction denominator.
  FractionFormatType
Style of the fraction.

Return Value

A text string that represents the fraction.

Remarks

In fractions the characters '/' and '#' are reserved if you need to write them you must write "/" and "#", respectively.

See Also

Reference

MText Class
WriteFraction Overload
netDxf.Entities Namespace

Clone this wiki locally