UiaAtkBridge.ComponentImplementorHelper.SetExtents C# (CSharp) Method

SetExtents() public method

public SetExtents ( int x, int y, int width, int height, Atk coordType ) : bool
x int
y int
width int
height int
coordType Atk
return bool
		public bool SetExtents (int x, int y, int width, int height, Atk.CoordType coordType)
		{
			if (transformProvider == null)
				transformProvider = (ITransformProvider) resource.Provider.GetPatternProvider (TransformPatternIdentifiers.Pattern.Id);
			
			if ((transformProvider != null) && 
			    (transformProvider.CanResize) && 
			    (transformProvider.CanMove)) {
				try {
					transformProvider.Move (x, y);
				} catch (InvalidOperationException e) {
					Log.Debug (e);
				}

				try {
					transformProvider.Resize (width, height);
				} catch (InvalidOperationException e) {
					Log.Debug (e);
				}
				return true;
			}
			return false;
		}

Usage Example

Ejemplo n.º 1
0
 public virtual bool SetExtents(int x, int y, int width, int height, Atk.CoordType coordType)
 {
     return(componentExpert.SetExtents(x, y, width, height, coordType));
 }