Skip to content

TaxObject

The TaxObject property is used to obtain the tax object corresponding to the SelectedTax. For example,

// using TaxControls;
try {
TaxControl tc = new TaxControl();
tc.DataFilename = "us.dat";
tc.SelectedTax = "federal income tax";
Tax tax = tc.TaxObject;
Console.WriteLine(tax.TaxType);
} catch (TaxControlException e) {
Console.WriteLine(e.Message);
}
//import com.boondocks.taxcontrols.*;
try {
TaxControl tc = new TaxControl();
tc.setDataFilename("us.dat");
tc.setSelectedTax("federal income tax";
Tax tax = tc.getCurrentTax();
System.out.println(tax.getTaxType());
} catch (TaxControlException e) {
e.printStackTrace();
}
Syntax

value = object.

Part Description
object A TaxControl object.
value A Tax Object result.