|
//-----------------------------------------------------------------------
//
// Microsoft Windows Client Platform
// Copyright (C) Microsoft Corporation, 2001
//
// File: TextEffect.cs
//
// Contents: TextEffect class
//
// Created: 3/23/2004 garyyang
//
//------------------------------------------------------------------------
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Windows;
using System.Collections;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Markup;
using System.ComponentModel;
using SR=MS.Internal.PresentationCore.SR;
using SRID=MS.Internal.PresentationCore.SRID;
namespace System.Windows.Media
{
/// <summary>
/// The class definition for TextEffect
/// </summary>
[Localizability(LocalizationCategory.None, Readability=Readability.Unreadable)]
public partial class TextEffect : Animatable
{
//----------------------------------------
// constructor
//----------------------------------------
/// <summary>
/// Constructor to TextEffect
/// </summary>
/// <param name="transform">transform of the text effect</param>
/// <param name="foreground">foreground of the text effect</param>
/// <param name="clip">clip of the text effect</param>
/// <param name="positionStart">starting character index of the text effect</param>
/// <param name="positionCount">number of code points</param>
public TextEffect(
Transform transform,
Brush foreground,
Geometry clip,
int positionStart,
int positionCount
)
{
if (positionCount < 0)
{
throw new ArgumentOutOfRangeException("positionCount", SR.Get(SRID.ParameterCannotBeNegative));
}
Transform = transform;
Foreground = foreground;
Clip = clip;
PositionStart = positionStart;
PositionCount = positionCount;
}
/// <summary>
/// constructor
/// </summary>
public TextEffect()
{
}
//-------------------------------
// Private method
//-------------------------------
private static bool OnPositionStartChanging(int value)
{
return (value >= 0);
}
private static bool OnPositionCountChanging(int value)
{
return (value >= 0);
}
}
}
|