NotesWindowManagerPreview.TrySetNoteSize(Int32, Size) Method

Definition

Resizes the specified note to the desired dimensions. If the given size is not recommended due to screen size/space issues, the note's size will not be changed.

public:
 virtual bool TrySetNoteSize(int noteViewId, Size size) = TrySetNoteSize;
bool TrySetNoteSize(int const& noteViewId, Size const& size);
public bool TrySetNoteSize(int noteViewId, Size size);
function trySetNoteSize(noteViewId, size)
Public Function TrySetNoteSize (noteViewId As Integer, size As Size) As Boolean

Parameters

noteViewId
Int32

int

The unique identifier of the note to be resized.

size
Size

The desired dimensions of the note (use raw pixels when constructing).

Returns

Boolean

bool

true if the note was resized, false if it was not resized due to screen restrictions.

Applies to