GoDiagram Web Reference
CssFile Property

Gets or sets the URL of the file that contains Cascading Style Sheet definitions needed to show interactive context menus in the browser.
Syntax
'Declaration
 
<EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="System.Web.UI.Design.ImageUrlEditor, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")>
<DescriptionAttribute("the Cascading Style Sheet file that holds style definitions used by the page in the browser")>
<DefaultValueAttribute()>
Public Property CssFile As String
[EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="System.Web.UI.Design.ImageUrlEditor, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[DescriptionAttribute("the Cascading Style Sheet file that holds style definitions used by the page in the browser")]
[DefaultValueAttribute()]
public string CssFile {get; set;}

Property Value

This defaults to "GoWeb.css", which is the name of the standard CSS file provided by GoDiagram for describing client-side context menus. You will need to make sure this CSS file is present and accessible in your web site. If the value is the empty string, the RenderCss method renders the standard style definitions inline. When this value is a non-empty string, RenderCss simply generates <link rel='stylesheet' href='...' type='text/css'>, using this property value as the HREF. When the value is null or the string "none", no stylesheet reference or style definition is generated.

Note that having different values for different GoViews on the same Page can produce inconsistent results. They should all be the same, so that the order in which the controls are rendered will not matter.

Remarks
The advantages of having a separate CSS file include avoiding the overhead of sending and parsing the style definitions with each page, caching of that file and those definitions by the client, and the ease of modifying the styles to accomodate additional features. Disadvantages include confusion when multiple views have conflicting values, and possibly dealing with caching problems when modifying the file. GoDiagram provides a standard CSS file that you can use, named GoWeb.css, that you can copy from the GoDiagram Web Samples directory.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GoView Class
GoView Members

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback