Show / Hide Table of Contents

Class MyRes

Used to access to resource IDs inside the specified branch.

Inheritance
System.Object
MyRes
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: FastReport.Utils
Assembly: FastReport.OpenSource.dll
Syntax
public class MyRes
Remarks

Using the Get(String) method, you have to specify the full path to your resource. Using this class, you can shorten the path:

// using the Res.Get method
miKeepTogether = new ToolStripMenuItem(Res.Get("ComponentMenu,HeaderBand,KeepTogether"));
miResetPageNumber = new ToolStripMenuItem(Res.Get("ComponentMenu,HeaderBand,ResetPageNumber"));
miRepeatOnEveryPage = new ToolStripMenuItem(Res.Get("ComponentMenu,HeaderBand,RepeatOnEveryPage"));

// using MyRes.Get method
MyRes res = new MyRes("ComponentMenu,HeaderBand");
miKeepTogether = new ToolStripMenuItem(res.Get("KeepTogether"));
miResetPageNumber = new ToolStripMenuItem(res.Get("ResetPageNumber"));
miRepeatOnEveryPage = new ToolStripMenuItem(res.Get("RepeatOnEveryPage"));

Constructors

MyRes(String)

Initializes a new instance of the MyRes class with spevified branch.

Declaration
public MyRes(string category)
Parameters
Type Name Description
System.String category

The main resource branch.

Methods

Get(String)

Gets a string with specified ID inside the main branch.

Declaration
public string Get(string id)
Parameters
Type Name Description
System.String id

The resource ID.

Returns
Type Description
System.String

The localized value.

Back to top Generated by DocFX