C# Class WPFLocalizeExtension.Extensions.LocTextExtension

Inheritance: LocExtension
显示文件 Open project: SeriousM/WPFLocalizationExtension Class Usage Examples

Public Methods

Method Description
FormatOutput ( TargetInfo endPoint, TargetInfo info ) : object

This function returns the properly prepared output of the markup extension.

LocTextExtension ( ) : System
LocTextExtension ( string key ) : System

Protected Methods

Method Description
FormatText ( string target ) : string

This method formats the localized text. If the passed target text is null, string.empty will be returned.

Private Methods

Method Description
GetAppendText ( TextAppendType at ) : string

Returns the prefix or suffix text, depending on the supplied TextAppendType. If the prefix or suffix is null, it will be returned a string.empty.

Method Details

FormatOutput() public method

This function returns the properly prepared output of the markup extension.
public FormatOutput ( TargetInfo endPoint, TargetInfo info ) : object
endPoint TargetInfo Information about the endpoint.
info TargetInfo Information about the target.
return object

FormatText() protected method

This method formats the localized text. If the passed target text is null, string.empty will be returned.
protected FormatText ( string target ) : string
target string The text to format.
return string

LocTextExtension() public method

public LocTextExtension ( ) : System
return System

LocTextExtension() public method

public LocTextExtension ( string key ) : System
key string
return System