Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Core / CSharp / System / Windows / Media / TextEffect.cs / 1 / TextEffect.cs
//------------------------------------------------------------------------
//
// 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
{
///
/// The class definition for TextEffect
///
[Localizability(LocalizationCategory.None, Readability=Readability.Unreadable)]
public partial class TextEffect : Animatable
{
//----------------------------------------
// constructor
//----------------------------------------
///
/// Constructor to TextEffect
///
/// transform of the text effect
/// foreground of the text effect
/// clip of the text effect
/// starting character index of the text effect
/// number of code points
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;
}
///
/// constructor
///
public TextEffect()
{
}
//-------------------------------
// Private method
//-------------------------------
private static bool OnPositionStartChanging(int value)
{
return (value >= 0);
}
private static bool OnPositionCountChanging(int value)
{
return (value >= 0);
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------------------
//
// 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
{
///
/// The class definition for TextEffect
///
[Localizability(LocalizationCategory.None, Readability=Readability.Unreadable)]
public partial class TextEffect : Animatable
{
//----------------------------------------
// constructor
//----------------------------------------
///
/// Constructor to TextEffect
///
/// transform of the text effect
/// foreground of the text effect
/// clip of the text effect
/// starting character index of the text effect
/// number of code points
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;
}
///
/// constructor
///
public TextEffect()
{
}
//-------------------------------
// Private method
//-------------------------------
private static bool OnPositionStartChanging(int value)
{
return (value >= 0);
}
private static bool OnPositionCountChanging(int value)
{
return (value >= 0);
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BooleanToSelectiveScrollingOrientationConverter.cs
- NotifyInputEventArgs.cs
- RenderingEventArgs.cs
- Part.cs
- VisualStyleInformation.cs
- RSAPKCS1SignatureFormatter.cs
- DataColumnPropertyDescriptor.cs
- Stackframe.cs
- RawStylusSystemGestureInputReport.cs
- CodePrimitiveExpression.cs
- WeakReference.cs
- WebUtil.cs
- TextSpanModifier.cs
- ValueTypeFieldReference.cs
- ReflectionTypeLoadException.cs
- SByte.cs
- Int64Animation.cs
- DbConnectionPoolIdentity.cs
- SerializationInfoEnumerator.cs
- GatewayDefinition.cs
- StrongName.cs
- Application.cs
- RoutedEventValueSerializer.cs
- CachedTypeface.cs
- FieldToken.cs
- ResXResourceReader.cs
- FilterableAttribute.cs
- FixUpCollection.cs
- BufferBuilder.cs
- SqlBuilder.cs
- HttpListener.cs
- ToolStripComboBox.cs
- EventMappingSettings.cs
- HtmlButton.cs
- DataBoundControlAdapter.cs
- Token.cs
- DataGridToolTip.cs
- UserPreference.cs
- UndoManager.cs
- VerticalAlignConverter.cs
- ProviderUtil.cs
- _SafeNetHandles.cs
- ImageUrlEditor.cs
- DataServiceQueryOfT.cs
- ThreadPoolTaskScheduler.cs
- WebEvents.cs
- DataGridColumn.cs
- DataError.cs
- BuilderInfo.cs
- OpacityConverter.cs
- ToolStripLabel.cs
- RefExpr.cs
- XXXInfos.cs
- ArgumentNullException.cs
- GACMembershipCondition.cs
- DefaultPropertyAttribute.cs
- BasicViewGenerator.cs
- EventPrivateKey.cs
- IIS7UserPrincipal.cs
- CompilerParameters.cs
- DataGridViewCell.cs
- LinqDataSource.cs
- StreamGeometry.cs
- ReferenceConverter.cs
- CustomErrorsSection.cs
- FilteredSchemaElementLookUpTable.cs
- RawAppCommandInputReport.cs
- ObjectPersistData.cs
- AssertFilter.cs
- Stroke.cs
- ObjectSpanRewriter.cs
- MarkupExtensionReturnTypeAttribute.cs
- Int16AnimationBase.cs
- WCFServiceClientProxyGenerator.cs
- HMAC.cs
- CanExecuteRoutedEventArgs.cs
- XamlTypeMapperSchemaContext.cs
- ControlType.cs
- SqlClientFactory.cs
- BaseCodeDomTreeGenerator.cs
- Input.cs
- TextTreePropertyUndoUnit.cs
- CrossSiteScriptingValidation.cs
- FormatStringEditor.cs
- ReadingWritingEntityEventArgs.cs
- FileLevelControlBuilderAttribute.cs
- LineVisual.cs
- UpdateManifestForBrowserApplication.cs
- XmlDataLoader.cs
- ProtocolReflector.cs
- XmlReaderDelegator.cs
- EncoderParameter.cs
- TableColumnCollection.cs
- XDeferredAxisSource.cs
- Parameter.cs
- DeploymentSection.cs
- UnknownWrapper.cs
- SettingsSavedEventArgs.cs
- GetPageNumberCompletedEventArgs.cs
- Splitter.cs