bool AddTranslateY( System.Nullable<Length> length )

robot_2Generated
code_blocksInput

Description

The AddTranslateY method is used to add a translation transformation along the Y-axis to the PanelTransform. This method modifies the current transformation matrix by adding a translation component based on the specified length.

Usage

To use the AddTranslateY method, you need to provide a nullable Length value that specifies the amount of translation along the Y-axis. If the length is null, no translation is applied.

This method returns a Boolean indicating whether the translation was successfully added to the transform.

Example

// Create a new PanelTransform instance
PanelTransform transform = new PanelTransform();

// Define a length for the Y-axis translation
Length? translateY = new Length(10.0f, LengthUnit.Pixel);

// Add the translation to the transform
bool success = transform.AddTranslateY(translateY);

// Check if the translation was successfully added
if (success)
{
    // The translation was added
}
else
{
    // The translation was not added
}