/// Once the object is appended, it will become a child of the layout.
/// Its lifetime will be bound to the layout. Whenever the layout dies, the child will be deleted automatically.
/// </summary>
+ /// <remarks>
+ /// This will only work if the layout edc have box part.
+ /// </remarks>
/// <param name="part">The part.</param>
/// <param name="child">The object to append.</param>
/// <returns>Success is true.</returns>
/// Once the object is prepended, it will become a child of the layout.
/// Its lifetime will be bound to the layout. Whenever the layout dies, the child will be deleted automatically.
/// </summary>
+ /// <remarks>
+ /// This will only work if the layout edc have box part.
+ /// </remarks>
/// <param name="part">The part.</param>
/// <param name="child">The object to prepend.</param>
/// <returns>Success is true.</returns>
/// Removes a child from the given part box.
/// The object will be removed from the box part and its lifetime will not be handled by the layout anymore.
/// </summary>
+ /// <remarks>
+ /// This will only work if the layout edc have box part.
+ /// </remarks>
/// <param name="part">The part.</param>
/// <param name="child">The object to remove.</param>
/// <returns>Success if true</returns>
public bool BoxRemove(string part, EvasObject child)
{
RemoveChild(child);
- return Interop.Elementary.elm_layout_box_remove(RealHandle, part, child.Handle) != null;
+ return Interop.Elementary.elm_layout_box_remove(RealHandle, part, child.Handle) != IntPtr.Zero;
}
/// <summary>
/// Removes all the children from the given part box.
/// The objects will be removed from the box part and their lifetime will not be handled by the layout anymore.
/// </summary>
+ /// <remarks>
+ /// This will only work if the layout edc have box part.
+ /// </remarks>
/// <param name="part">The part.</param>
/// <param name="clear">If true, then all the objects will be deleted as well, otherwise they will just be removed and will be dangling on the canvas.</param>
/// <returns>Success if true.</returns>
/// Once the object is inserted, it will become a child of the layout.
/// Its lifetime will be bound to the layout. Whenever the layout dies, the child will be deleted automatically.
/// </summary>
+ /// <remarks>
+ /// This will only work if the layout edc have box part.
+ /// </remarks>
/// <param name="part">The part.</param>
/// <param name="child">The child object to insert into the box.</param>
/// <param name="position">The numeric position >=0 to insert the child.</param>
/// Once the object is inserted, it will become child of the layout.
/// Its lifetime will be bound to the layout. Whenever the layout dies, the child will be deleted automatically.
/// </summary>
+ /// <remarks>
+ /// This will only work if the layout edc have box part.
+ /// </remarks>
/// <param name="part">The part.</param>
/// <param name="child">The child object to insert into the box.</param>
/// <param name="reference">Another reference object to insert before the box.</param>
return Interop.Elementary.elm_layout_add(parent.Handle);
}
}
-}
\ No newline at end of file
+}