How to localize the Custom Header/Footer dropdown's "document" string in the Page Setup dialog box?
The "document" string displayed in the Custom Header/Footer dropdown is associated with the document's name. If the document's name is not set then "document" will appear by default in the dropdown.
Therefore to localize the "document" string, you specify a resource name and assign it a localized string value in the *.resx file for a particular language. In the associated *.Designer.cs file, you will also specify a property with a "get" accessor that returns the localized resource through the ResourceManager.GetString(String, CultureInfo) method for the "Resources" class. Through this property, you will set the localized string to the DiagramPrintDocument's DocumentName property before displaying the DiagramPageSetupDialog. For example:
DiagramPrintDocument doc = new DiagramPrintDocument(this.diagramView.Content);
doc.DocumentName = <namespace_in_*.Designer.cs_file>.Resources.<property_resource_name>;
DiagramPageSetupDialog dialog = new DiagramPageSetupDialog();
dialog.Document = doc;
Rate this page:
Copyright and trademark information
IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.