Source/ContentManager/BlockLayoutManager.cs
(完整代码) 1KBusing System.Drawing;
#if AdvTree
namespace DevComponents.Tree.TextMarkup
#elif DOTNETBAR
namespace DevComponents.UI.ContentManager
#endif
{
/// <summary>
/// Represents block layout manager responsible for sizing the content blocks.
/// </summary>
public abstract class BlockLayoutManager
{
private Graphics m_Graphics;
/// <summary>
/// Creates new instance of BlockLayoutManager.
/// </summary>
public BlockLayoutManager()
{
}
/// <summary>
/// Resizes the content block and sets it's Bounds property to reflect new size.
/// </summary>
/// <param name="block">Content block to resize.</param>
/// <param name="availableSize">Content size available for the block in the given line.</param>
public abstract void Layout(IBlock block, Size availableSize);
/// <summary>
/// Gets or sets the graphics object used by layout manager.
/// </summary>
public System.Drawing.Graphics Graphics
{
get {return m_Graphics;}
set {m_Graphics=value;}
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。