Document Solutions for Imaging
DS.Documents.Imaging Assembly / GrapeCity.Documents.Layout.Composition Namespace / Surface Class
Properties Methods

In This Topic
    Surface Class Members
    In This Topic

    The following tables list the members exposed by Surface.

    Public Constructors
     NameDescription
    Public ConstructorInitializes a new instance of the Surface object with a GrapeCity.Documents.Layout.LayoutHost.  
    Top
    Public Properties
     NameDescription
    Public PropertyGets the transformation matrix of the GrapeCity.Documents.Drawing.GcGraphics object when it was passed to the Render method.

    Returns an identity matrix when checked outside of the Render method.

     
    Public PropertyGets the view that appears below all other views on this Surface.  
    Public PropertyGets the associated GrapeCity.Documents.Layout.LayoutHost object.  
    Public PropertyGets or sets the name of the Surface.  
    Public PropertyGets or sets an object that contains arbitrary data associated with this surface.  
    Public PropertyGets or sets a value indicating whether a GrapeCity.Documents.Layout.LayoutException should be thrown if the width or height of some GrapeCity.Documents.Layout.LayoutRects becomes negative.

    The default is true.

     
    Public PropertyGets the view that appears above all other views on this Surface.  
    Top
    Public Methods
     NameDescription
    Public MethodOverloaded. Creates a View object that encapsulates a GrapeCity.Documents.Layout.LayoutView and adds it as the top layer.  
    Public MethodReturns the array of views on this Surface.  
    Public MethodRecalculates the layout of all Visual and Space objects on this Surface.  
    Public MethodDraws this Surface on a specified GrapeCity.Documents.Drawing.GcGraphics object.

    This method first calls PerformLayout, if the call succeeds it then draws all layers starting with the bottom layer and going up. For each layer, it draws all visuals from the bottom to the top one, followed by drawing the layer's sub-layers. The process repeats until the topmost visual of the top layer has been drawn.

     
    Public MethodReturns a string that represents the current Surface.  
    Top
    See Also