UiaAtkBridge.ComponentImplementorHelper.SetPosition C# (CSharp) Method

SetPosition() public method

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

Usage Example

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