PagePorter Class Library

FpLinkBar.GetButtonGraphic Method 

Returns the path and size of a button graphic.

[Visual Basic]
Protected Function GetButtonGraphic( _
   ByVal page As NavigationPage, _
   ByVal type As String, _
   ByVal urlOverride As String, _
   ByRef buttonSize As Size _
) As String
[C#]
protected string GetButtonGraphic(
   NavigationPage page,
   string type,
   string urlOverride,
   out Size buttonSize
);

Parameters

page
A NavigationPage object.
type
The type string of the graphic.
urlOverride
A string value to use to override the default use of the url in the graphic object's filename.
buttonSize
Returns the size of the graphic in pixels.

Return Value

The path of the graphic, or null (Nothing in Visual Basic) if the graphic could not be found or generated.

Remarks

This method returns information about an existing graphic if it exists, and it is current. Otherwise an attempt is made to generate the graphic.

See Also

FpLinkBar Class | Parastream.Web.UI.WebControls Namespace