NotesWindowManagerPreview.TrySetNoteSize(Int32, Size) 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.
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.