Class ReportGeneratorContextExtensions
Provides a set of static methods related to IReportGeneratorContext.
public static class ReportGeneratorContextExtensions
- Inheritance
-
ReportGeneratorContextExtensions
- Inherited Members
Methods
NameLocationTo(IReportGeneratorContext, ReportModel, double, double, CultureInfo?, CultureInfo)
Names a location in a culture and sets the result to a report model.
public static bool NameLocationTo(this IReportGeneratorContext context, ReportModel e, double lat, double lon, CultureInfo? localCulture, CultureInfo targetCulture)
Parameters
contextIReportGeneratorContext- The context.
eReportModel- The report model. Its Location and LocationSpecificity are modified to the name given by the context, if and only if this method returns true.
latdouble- The latitude of the location.
londouble- The longitude of the location.
localCultureCultureInfo- The local culture supported by the event itself.
targetCultureCultureInfo- The target culture of the location name. When the method returns, set to the actual culture of the location name.