HtmlObjectListAdapter.ShouldRenderAsTable Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a Boolean
that indicates whether the list must be rendered as a table. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.
protected:
virtual bool ShouldRenderAsTable();
protected virtual bool ShouldRenderAsTable ();
abstract member ShouldRenderAsTable : unit -> bool
override this.ShouldRenderAsTable : unit -> bool
Protected Overridable Function ShouldRenderAsTable () As Boolean
Returns
true
if the list must be rendered as a table; otherwise, false
.
Remarks
This method can be overridden in order to change the manner in which the list view is rendered.
Note
Even if the ShouldRenderAsTable method returns true
, the target device might not support tables, in which case the list view will not be rendered as a table.
The ShouldRenderAsTable method returns a Boolean
that indicates whether the specified table will fit on the target device screen, whereas the Tables property of the MobileCapabilities class returns a Boolean
that indicates whether the device supports tables at all.
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om