C# Class MWFResourceEditor.ResourceList

显示文件 Open project: mono/winforms-tools

Public Properties

Property Type Description
Instance ResourceList

Public Methods

Method Description
AddResource ( string resource_name, object resource ) : int
AddResourceDirect ( IResource resource ) : void
ClearResources ( ) : void
ContainsName ( string name ) : bool
GetResourceByName ( string name ) : IResource
IndexOfResource ( IResource resource ) : int
InsertResourceDirect ( int index, IResource resource ) : void
ItemsAsArray ( ResourceType resourceType ) : object[]
RemoveResource ( IResource resource ) : void
RenameResource ( IResource resource, string new_name ) : void
ReplaceResource ( IResource old_resource, IResource new_resource ) : void
UniqueResourceName ( string pre ) : string

Method Details

AddResource() public method

public AddResource ( string resource_name, object resource ) : int
resource_name string
resource object
return int

AddResourceDirect() public method

public AddResourceDirect ( IResource resource ) : void
resource IResource
return void

ClearResources() public method

public ClearResources ( ) : void
return void

ContainsName() public method

public ContainsName ( string name ) : bool
name string
return bool

GetResourceByName() public method

public GetResourceByName ( string name ) : IResource
name string
return IResource

IndexOfResource() public method

public IndexOfResource ( IResource resource ) : int
resource IResource
return int

InsertResourceDirect() public method

public InsertResourceDirect ( int index, IResource resource ) : void
index int
resource IResource
return void

ItemsAsArray() public method

public ItemsAsArray ( ResourceType resourceType ) : object[]
resourceType ResourceType
return object[]

RemoveResource() public method

public RemoveResource ( IResource resource ) : void
resource IResource
return void

RenameResource() public method

public RenameResource ( IResource resource, string new_name ) : void
resource IResource
new_name string
return void

ReplaceResource() public method

public ReplaceResource ( IResource old_resource, IResource new_resource ) : void
old_resource IResource
new_resource IResource
return void

UniqueResourceName() public method

public UniqueResourceName ( string pre ) : string
pre string
return string

Property Details

Instance public_oe static_oe property

public static ResourceList,MWFResourceEditor Instance
return ResourceList